DocSpace-buildtools/packages/asc-web-common/components/PageLayout
2021-11-08 17:23:56 +08:00
..
sub-components Merge branch 'develop' into feature/catalog 2021-11-02 21:04:46 +08:00
i18n.js Web: i18n: Replaced i18т config load: from "languageOnly" to "all" and added new utils function loadLanguagePath() + Refactoring 2021-06-02 13:55:11 +03:00
index.js Merge branch 'develop' into feature/catalog 2021-11-02 21:04:46 +08: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