0.8.0 • Published 3 years ago

@govuk-react/layout v0.8.0

Weekly downloads
525
License
MIT
Repository
-
Last release
3 years ago

Layout

Import

  import Layout from '@govuk-react/layout';

THIS COMPONENT IS NO LONGER REQUIRED TO ACHIEVE LAYOUT; 1. GridCol contains the required gutters, we do not need to provide additional gutter to build an accurate grid layout.

  1. GridRow contains the required display: flex; and associated properties for GridCol.

  2. Main contains the required properties to center a container that matches up with TopNav and house the remaining body of content for the page.

If you feel you may still need a Layout component, please do raise a ticket on Github

Usage

This component provides default padding. You can use this component to wrap Grid components however it is not required.

Simple usage

import GridRow from '@govuk-react/grid-row';
import GridCol from '@govuk-react/grid-col';

<Layout>
  <GridRow>
    <GridCol>
      ...
    </GridCol>
  </GridRow>
</Layout>

References:

Properties

PropRequiredDefaultTypeDescription
childrentrue | node | GridRow and GridCol children nodes
0.8.0

3 years ago

0.7.1

5 years ago

0.7.0

5 years ago

0.6.0

5 years ago

0.6.0-rc.1

5 years ago

0.6.0-alpha.4

5 years ago

0.6.0-alpha.1

5 years ago

0.6.0-alpha.0

5 years ago

0.5.1

5 years ago

0.5.0

5 years ago

0.4.0

5 years ago

0.3.1

6 years ago

0.3.0

6 years ago

0.2.12

6 years ago

0.2.7

6 years ago

0.2.6

6 years ago

0.2.4

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.28

6 years ago

0.1.27

6 years ago

0.1.26

6 years ago

0.1.25

6 years ago

0.1.24

6 years ago

0.1.23

6 years ago

0.1.22

6 years ago

0.1.21

6 years ago

0.1.19

6 years ago