import Layout from '@govuk-react/layout';
THIS COMPONENT IS NO LONGER REQUIRED TO ACHIEVE LAYOUT;
GridColcontains the required gutters, we do not need to provide additional gutter to build an accurate grid layout.
GridRowcontains the required
display: flex;and associated properties for
Maincontains the required properties to center a container that matches up with
TopNavand 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
This component provides default padding. You can use this component to wrap Grid components however it is not required.
import GridRow from '@govuk-react/grid-row'; import GridCol from '@govuk-react/grid-col'; <Layout> <GridRow> <GridCol> ... </GridCol> </GridRow> </Layout>
||true||``````||node||GridRow and GridCol children nodes|