Skip to main content
Components

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} />
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.

PropType
containerClassName

Classes that can be added to the inner container, useful if you want to make the footer full width.

string
navigation

The navigation section of the footer before a section break and the copyright and license information. Children are Sections.

ReactNode
metaHeading

Title for a meta item section. Defaults to "Support links".

ReactNode
metaLinks

The meta links add content within a unordered list to the meta section of the footer component. Children are InlineListItems.

ReactNode
metaContent

Content to add to the meta section of the footer, which will appear below any meta links.

ReactNode
licence

The content licence information within the footer component. If your service provides its information under a different license than OGL, use false to hide both the OGL logo and licence text. Defaults to Open Government Licence (OGL) v3 licence.

ReactNode
copyright

The copyright information in the footer component, this defaults to "© Crown copyright".

ReactNode

No props of its own. Other props are passed to the element it renders.

Footer.Crown

PropType
ariaLabelTextstring

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.

No props of its own. Other props are passed to the element it renders.

PropType
asChild

Render the only child (such as a router's link) instead of an a, with the link classes merged onto it.

boolean

Footer.List

PropType
columns

Amount 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

PropType
growboolean

Footer.Navigation

No props of its own. Other props are passed to the element it renders.

Footer.Section

PropType
width

Width of each navigation section in the footer. You can pass any Design System grid width here – for example, "one-third", "two-thirds" or "one-half". Defaults to "full".

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.