Styles
Main wrapper
Read the Design System guidance for main wrapper
Import
import { MainWrapper } from 'govuk-react/main-wrapper';Examples
Default
Code
<MainWrapper>
{(
<GridRow>
<GridColumn width="two-thirds">
Aliquip et Lorem aliquip voluptate. In laborum dolor fugiat mollit exercitation occaecat deserunt sunt quis.
</GridColumn>
</GridRow>
)}
</MainWrapper>Large
Code
<MainWrapper size="l">
{(
<GridRow>
<GridColumn width="two-thirds">
Aliquip et Lorem aliquip voluptate. In laborum dolor fugiat mollit exercitation occaecat deserunt sunt quis.
</GridColumn>
</GridRow>
)}
</MainWrapper>API reference
MainWrapper
| Prop | Type |
|---|---|
as | ElementType |
size | "l" |
autoSpacingAdds spacing when the main wrapper is the only thing in the width container. | boolean |