Skip to main content
Components

Document footer metadata

Metadata about a document. Children are ItemComposites, rendered after from, partOf and other.

Import

import * as DocumentFooterMetadata from 'govuk-react/document-footer-metadata';

Examples

Default

Code
Template.bind({})

Dfm from part of example

Code
Template.bind({})

Dfm from other data example

Code
Template.bind({})

With items

Code
Template.bind({})

API reference

DocumentFooterMetadata.Root

A list of metadata about a document, such as who it’s from and what it’s part of.

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

DocumentFooterMetadata.Composite

Metadata about a document. Children are ItemComposites, rendered after from, partOf and other.

PropType
from

Values for “From”, such as organisation links.

any[]
partOf

Values for “Part of”, such as topic links.

any[]
other

Other items. Prefer ItemComposite children.

{ id?: string | number; title: any; content: any; }[]

DocumentFooterMetadata.Definition

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

DocumentFooterMetadata.ItemComposite

A term and its values.

PropType
termRequired

The label, such as “From”. A colon is added after it.

ReactNode
definitionsRequired

The values. Each renders as its own definition.

any[]

DocumentFooterMetadata.Term

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