Containers

<Page />

High level container elements that are meant to help structure page like content and also require routing. Typically, <Page> headers are provided a block.

Requires: Container, Block

Props: type, children

Basic Usage

<Page>
  {{
    header:(
      <Block
        lines={[
          'Auto Policy',
          'CAAS100383547',
          'Policy Period 12/31/2018 to 12/31/2019',
        ]}
      />
    ),
    body:'Body Content',
    footer:'Footer Content',
  }}
</Page>
Auto PolicyCAAS100383547Policy Period 12/31/2018 to 12/31/2019Body ContentFooter Content
show example code

Variations

Definitions

{
  page: {
    padding:'0 56px 0px 56px',
    header:{
      block: {
        padding:'40px 0 40px 0',
        border:{
          bottom:{
            thickness:'1px',
          },
          width:'calc(100% + 56px + 56px)',
          left:'-56px',
        },
        col_2: {},
      },
    },
    body:{
      margin:'24px 0 0 0',
    },
    footer:{
      height:{
        min:'56px',
      },
    },
  }
}

Tokens

@mixin page {
  // → → returns <page> → <wrapper> → <wrapper> context

  @mixin page_header {
    // → → returns <wrapper type='header'> context

    @mixin page_header_block {
      // → → returns <Block><wrapper > context
    }
  }
  @mixin page_body {
    // → → returns <wrapper type='body'> context
  }
  @mixin page_footer {
    // → → returns <wrapper type='footer'> context
  }
}

Videos

...are super cool
...are Containers
Containers contain...

Examples

<>
Page TitleBody Content
<>
Page TitlePages are special containers that live and breath and are routed to.Body Content
<>
Auto PolicyCAAS100383547Policy Period 12/31/2018 to 12/31/2019Body ContentFooter Content

Roadmap

  1. Add Page related videos to augment the general container clips
  2. Add routing concept to component
  3. Address how containers default behavior for string passed into the header slot will be converted into <Title>s vs single line <Block>. Should probably update <Title> to be a wrapper for single line <Block>
  4. Have CharlieBot explore more permutations especially including more types of body and footer content.
  5. Add variant examples after previous todo