DocSpace-client/packages/shared/components/section
2024-01-17 15:25:24 +03:00
..
sub-components Shared: Components: Section: add submenu 2024-01-17 15:25:24 +03:00
index.tsx Shared: Components: Section: add submenu 2024-01-17 15:25:24 +03:00
README.md Shared:Components:Section: rewrite to typescript, move from common and add wrapper to Client and Managment 2024-01-16 14:31:08 +03:00
Section.constants.ts Shared: Components: Section: add submenu 2024-01-17 15:25:24 +03:00
Section.styled.ts Shared: Components: Section: add submenu 2024-01-17 15:25:24 +03:00
Section.types.ts Shared: Components: Section: add submenu 2024-01-17 15:25:24 +03:00
Section.utils.ts Shared: Components: Section: add submenu 2024-01-17 15:25:24 +03:00

Section

Default section

Usage

import Section from "@docspace/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