Minimal footer

Use the minimal footer component to provide a global footer featuring legal links, social links, and optional footnotes.

import {MinimalFooter} from '@primer/react-brand'

Examples

Default

Loading

Use up to five MinimalFooter.Link children. Links can render as anchors or buttons.

Loading

Footnotes

Loading

MinimalFooter will render all supported social links by default. Social links can be removed however, by passing socialLinks={false}. Alternatively, pass an array of valid social links to filter and reorder the default list.

Loading

Center component

Use centerComponent for an exceptional page-specific control or status indicator between the top and bottom sections.

Loading

Back to top

Use MinimalFooter.BackToTop to opt into a control in the top row that scrolls the document back to the top.

After keyboard activation, focus moves to the first <main> element, falling back to <body> or <html> when a main landmark is unavailable. Use focusTargetId to identify a different semantic top-of-page destination.

Loading

Component props

MinimalFooter

NameTypeDefaultDescription
classNamestringSets a custom class on the root element
centerComponentReactElementundefinedRenders an optional component between the top and bottom sections.
children'MinimalFooter.Link'
'MinimalFooter.Footnotes'
'MinimalFooter.BackToTop'
undefinedValid child components
copyrightStatementstring | ReactElementCurrent-year GitHub copyright statementThe copyright statement displayed in the bottom section.
logoHrefstring'https://github.com'The href for the GitHub logomark.
socialLinksArray<'x' | 'github' | 'linkedin' | 'youtube' | 'facebook' | 'twitch' | 'tiktok' | 'instagram'> | false['x', 'github', 'linkedin', 'youtube', 'facebook', 'twitch', 'tiktok', 'instagram']Ordered subset of social links, or false to hide all links.
NameTypeDefaultDescription
as'a', 'button''a'Applies the underlying HTML element
childrenstringundefinedLabel for a link in the bottom section

MinimalFooter.Footnotes

NameTypeDefaultDescription
childrenReactElementundefinedUse Primer Brand Text components to benefit from inherited styling.

MinimalFooter.BackToTop

NameTypeDefaultDescription
childrenReactNodeRequiredThe visible and accessible localized label.
focusTargetIdstringundefinedID of the semantic top-of-page element that receives focus after keyboard activation. Defaults to the first <main>, then falls back to <body> or <html>.
onClickMouseEventHandlerundefinedRuns before the built-in behavior. Call event.preventDefault() to cancel scrolling and focus transfer.

All other props, including ARIA and data-* attributes, forward to the underlying <button>.