0.7.1 • Published 3 years ago
@slice-and-dice/govuk-react-main v0.7.1
Main
Import
import Main from '@govuk-react/main';
Provides a container which aligns to the topNav component, is centered, and provides top padding.
Usage
Example
Simple
import GridRow from '@govuk-react/grid-row';
import GridCol from '@govuk-react/grid-col';
<Main>
<GridRow>
<GridCol>
...
</GridCol>
</GridRow>
</Main>
TODO
- Implement the 1020px min-width MQ to constants
Properties
Prop | Required | Default | Type | Description |
---|---|---|---|---|
children | undefined | node | Child nodes for the page being built |
0.7.1
3 years ago