DocSpace-buildtools/packages/asc-web-common/components/PageLayout
2021-12-02 14:59:31 +08:00
..
sub-components Merge branch 'develop' into feature/catalog 2021-12-02 14:59:31 +08:00
i18n.js Fix Bug 53180 - Client: Profile. Error «.../pt/Common.json 404» on pt-BR language. 2021-11-10 19:59:03 +03:00
index.js Web: Common: PageLayout: Refactoring, deleted useless code. 2021-11-03 09:57:51 +03:00
page-layout.stories.js Web:Common:PageLayout: add catalog in readme and storybook 2021-11-08 17:23:56 +08:00
page-layout.test.js Web: Common: fix after merge, fix imports and hierarchy 2021-02-25 17:20:11 +03:00
README.md Web:Common:PageLayout: add catalog in readme and storybook 2021-11-08 17:23:56 +08:00

PageLayout

Default page layout

Usage

import PageLayout from '@appserver/common/components/PageLayout';
<PageLayout withBodyScroll={true}>
  <PageLayout.ArticleHeader>{articleHeaderContent}</PageLayout.ArticleHeader>

  <PageLayout.ArticleMainButton>{articleMainButtonContent}</PageLayout.ArticleMainButton>

  <PageLayout.ArticleBody>{articleBodyContent}</PageLayout.ArticleBody>

  <PageLayout.CatalogHeader>{catalogHeaderContent}</PageLayout.CatalogHeader>

  <PageLayout.catalogMainButton>{catalogMainButtonContent}</PageLayout.catalogMainButton>

  <PageLayout.CatalogBody>{catalogBodyContent}</PageLayout.CatalogBody>

  <PageLayout.SectionHeader>{sectionHeaderContent}</PageLayout.SectionHeader>

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

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

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

Properties

Props Type Required Values Default Description
articleHeaderContent bool - - - Article header content
articleMainButtonContent bool - - - Article main button content
articleBodyContent bool - - - Article body content
catalogHeaderContent bool - - - Article header content
catalogMainButtonContent bool - - - Article main button content
catalogBodyContent bool - - - Article body content
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