Styles
Grid column
Read the Design System guidance for grid column
Import
import { GridColumn } from 'govuk-react/grid-column';Examples
Default
Code
<GridColumn width="full">
Full width
</GridColumn>Column halves
Code
<>
<GridColumn width="one-half">One half</GridColumn>
<GridColumn width="one-half">One half</GridColumn>
</>Column thirds
Code
<>
<GridColumn width="one-third">One third</GridColumn>
<GridColumn width="one-third">One third</GridColumn>
<GridColumn width="one-third">One third</GridColumn>
</>Column four quarters
Code
<>
<GridColumn width="one-quarter">One quarter</GridColumn>
<GridColumn width="one-quarter">One quarter</GridColumn>
<GridColumn width="one-quarter">One quarter</GridColumn>
<GridColumn width="one-quarter">One quarter</GridColumn>
</>Column widths from desktop
Code
<>
<GridColumn width="one-quarter-from-desktop">One quarter from desktop</GridColumn>
<GridColumn width="three-quarters-from-desktop">Three quarters from desktop</GridColumn>
</>API reference
GridColumn
| Prop | Type |
|---|---|
widthRequired | ColumnWidth | "full-from-desktop" | "one-half-from-desktop" | "one-third-from-desktop" | "two-thirds-from-desktop" | "one-quarter-from-desktop" | "three-quarters-from-desktop" |