0.8.0 • Published 4 years ago

@govuk-react/layout v0.8.0

Weekly downloads
525
License
MIT
Repository
-
Last release
4 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

4 years ago

0.7.1

6 years ago

0.7.0

6 years ago

0.6.0

6 years ago

0.6.0-rc.1

6 years ago

0.6.0-alpha.4

6 years ago

0.6.0-alpha.1

6 years ago

0.6.0-alpha.0

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.0

6 years ago

0.3.1

7 years ago

0.3.0

7 years ago

0.2.12

7 years ago

0.2.7

7 years ago

0.2.6

7 years ago

0.2.4

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.28

7 years ago

0.1.27

7 years ago

0.1.26

7 years ago

0.1.25

7 years ago

0.1.24

7 years ago

0.1.23

7 years ago

0.1.22

7 years ago

0.1.21

7 years ago

0.1.19

7 years ago