Footer
The footer provides copyright, licensing and other information about your service and department.
Read the Design System guidance for footer
Import
import * as Footer from 'govuk-react/footer';Examples
Default
Code
<Footer.Composite />With copyright
Code
<Footer.Composite copyright="© Crown copyright" />With no license
Code
<Footer.Composite licence={false} />With meta links
Code
<Footer.Composite
metaHeading="Support links"
metaLinks={(
<>
<Footer.InlineListItem>
<Footer.Link href="#">Help</Footer.Link>
</Footer.InlineListItem>
<Footer.InlineListItem>
<Footer.Link href="#">Cookies</Footer.Link>
</Footer.InlineListItem>
<Footer.InlineListItem>
<Footer.Link href="#">Contact</Footer.Link>
</Footer.InlineListItem>
</>
)}
/>With navigation
Code
<Footer.Composite
navigation={(
<>
<Footer.Section width="two-thirds">
<Footer.Heading>Services and information</Footer.Heading>
<Footer.List columns={2}>
<Footer.ListItem>
<Footer.Link href="#">Benefits</Footer.Link>
</Footer.ListItem>
<Footer.ListItem>
<Footer.Link href="#">Births, deaths, marriages and care</Footer.Link>
</Footer.ListItem>
<Footer.ListItem>
<Footer.Link href="#">Business and self-employed</Footer.Link>
</Footer.ListItem>
<Footer.ListItem>
<Footer.Link href="#">Childcare and parenting</Footer.Link>
</Footer.ListItem>
</Footer.List>
</Footer.Section>
<Footer.Section width="one-third">
<Footer.Heading>Departments and policy</Footer.Heading>
<Footer.List>
<Footer.ListItem>
<Footer.Link href="#">How government works</Footer.Link>
</Footer.ListItem>
<Footer.ListItem>
<Footer.Link href="#">Departments</Footer.Link>
</Footer.ListItem>
</Footer.List>
</Footer.Section>
</>
)}
/>API reference
Footer.Root
The footer provides copyright, licensing and other information about your service and department.
No props of its own. Other props are passed to the element it renders.
Footer.Composite
The footer provides copyright, licensing and other information about your service and department.
| Prop | Type |
|---|---|
containerClassNameClasses that can be added to the inner container, useful if you want to make the footer full width. | string |
navigationThe navigation section of the footer before a section break and the copyright and license information. Children are | ReactNode |
metaHeadingTitle for a meta item section. Defaults to | ReactNode |
metaLinksThe meta links add content within a unordered list to the meta section of the footer component. Children are | ReactNode |
metaContentContent to add to the meta section of the footer, which will appear below any meta links. | ReactNode |
licenceThe content licence information within the footer component. If your service provides its information under a different license than OGL, use | ReactNode |
copyrightThe copyright information in the footer component, this defaults to | ReactNode |
Footer.CopyrightLogo
No props of its own. Other props are passed to the element it renders.
Footer.Crown
| Prop | Type |
|---|---|
ariaLabelText | string |
Footer.Heading
No props of its own. Other props are passed to the element it renders.
Footer.InlineList
No props of its own. Other props are passed to the element it renders.
Footer.InlineListItem
No props of its own. Other props are passed to the element it renders.
Footer.LicenceDescription
No props of its own. Other props are passed to the element it renders.
Footer.LicenceDescriptionComposite
No props of its own. Other props are passed to the element it renders.
Footer.LicenceLogo
No props of its own. Other props are passed to the element it renders.
Footer.Link
| Prop | Type |
|---|---|
asChildRender the only child (such as a router's link) instead of an | boolean |
Footer.List
| Prop | Type |
|---|---|
columnsAmount of columns to display items in navigation section of the footer. | 1 | 2 | 3 |
Footer.ListItem
No props of its own. Other props are passed to the element it renders.
Footer.Meta
No props of its own. Other props are passed to the element it renders.
Footer.MetaCustom
No props of its own. Other props are passed to the element it renders.
Footer.MetaHeading
No props of its own. Other props are passed to the element it renders.
Footer.MetaItem
| Prop | Type |
|---|---|
grow | boolean |
Footer.Navigation
No props of its own. Other props are passed to the element it renders.
Footer.Section
| Prop | Type |
|---|---|
widthWidth of each navigation section in the footer. You can pass any Design System grid width here – for example, | ColumnWidth | "full-from-desktop" | "one-half-from-desktop" | "one-third-from-desktop" | "two-thirds-from-desktop" | "one-quarter-from-desktop" | "three-quarters-from-desktop" |
Footer.SectionBreak
No props of its own. Other props are passed to the element it renders.
Footer.WidthContainer
No props of its own. Other props are passed to the element it renders.