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.
| Prop | Type |
|---|---|
fromValues for “From”, such as organisation links. | any[] |
partOfValues for “Part of”, such as topic links. | any[] |
otherOther items. Prefer | { 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.
| Prop | Type |
|---|---|
termRequiredThe label, such as “From”. A colon is added after it. | ReactNode |
definitionsRequiredThe values. Each renders as its own definition. | any[] |
DocumentFooterMetadata.Term
No props of its own. Other props are passed to the element it renders.