1.0.12 • Published 6 years ago

@crpt/react-page-layout v1.0.12

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

react-page-layout

Travis npm package Coveralls

Layout components pack.

Usage

import { Header, Layout, Footer, Content, Container, Column, InlineWrap } from  "@crpt/react-page-layout";

Layout is allways a top level component.

     <Layout>
        <Header>Header Content</Header>
        <Content>Main Content</Content>
        <Footer>Footer Content</Footer>
     <Layout/>

Layout can be inset indefinitely.

     <Layout>
        <Header>Header Content</Header>
        <Content>

            <Layout>
                <Header>Header Content</Header>
                <Content>Main Content</Content>
                <Footer>Footer Content</Footer>
            <Layout/>

        </Content>
        <Footer>Footer Content</Footer>
     <Layout/>

Header, Layout, Footer and Content components have no special props.

Container

     <Container gutter={16} justify="stretch">
        <Column col={6}>Content</Column>
        <Column>Content</Column>
        <Column col={6}>Content</Column>
     <Container/>
PropNameОписаниеПример
gutter: NumberSpacing between <Column/> in pixels.<Container gutter={16}><Column></Column><Column></Column></Container>
justify: Stringalign-items flex value.<Container justify="stretch"><Column></Column><Column></Column></Container>

Column

PropNameОписаниеПример
col: NumberWidth in units. Maximum value: 24. If not set, fills all remaining space.<Container><Column></Column><Column col={6}></Column></Container>
1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago