Main
Import
import Main from '@govuk-react/main';
Provides a container which aligns to the TopNav component, is centered, and provides top padding.
Note, this equivalent to 'width-container' from govuk-frontend.
- https://govuk-react.github.io/govuk-react/?path=/docs/main
- https://design-system.service.gov.uk/styles/layout/#page-wrappers
Properties
Prop | Required | Default | Type | Description |
---|---|---|---|---|
children |
undefined |
ReactNode | Child nodes for the page being built |