DocSpace-client/packages/asc-web-common/components/Section
2022-05-16 18:03:21 +03:00
..
sub-components Merge branch 'release/v1.2' of github.com:ONLYOFFICE/AppServer into release/v1.2 2022-05-13 16:18:58 +03:00
i18n.js Web:Common: rename page layout component to section component and update stories, readme and sub-components 2022-03-16 15:22:48 +03:00
index.js Web: Files: added alert badge to main-button, upload logic changed 2022-05-16 18:03:21 +03:00
README.md Web:Common: rename page layout component to section component and update stories, readme and sub-components 2022-03-16 15:22:48 +03:00
section.stories.js Web:Common: rename page layout component to section component and update stories, readme and sub-components 2022-03-16 15:22:48 +03:00
section.test.js Web:Common: rename page layout component to section component and update stories, readme and sub-components 2022-03-16 15:22:48 +03:00

Section

Default section

Usage

import Section from "@appserver/common/components/Section";
<Section withBodyScroll={true}>
  <Section.SectionHeader>{sectionHeaderContent}</Section.SectionHeader>

  <Section.SectionFilter>{sectionFilterContent}</Section.SectionFilter>

  <Section.SectionBody>{sectionBodyContent}</Section.SectionBody>

  <Section.SectionPaging>{sectionPagingContent}</Section.SectionPaging>
</Section>

Properties

Props Type Required Values Default Description
sectionHeaderContent bool - - - Section header content
sectionFilterContent bool - - - Section filter content
sectionBodyContent bool - - - Section body content
sectionPagingContent bool - - - Section paging content
withBodyScroll bool - - true If you need display scroll inside content
withBodyAutoFocus bool - - false If you need set focus on content element