DocSpace-buildtools/packages/asc-web-common/components/PageLayout
2022-03-03 12:36:18 +03:00
..
sub-components Web:Common:Components: fix margins into section 2022-03-03 12:36:18 +03: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:Components: fix margins into section 2022-03-03 12:36:18 +03:00
page-layout.stories.js Web: fixed code format 2022-02-03 23:34:19 +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: fixed code format 2022-02-03 23:34:19 +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