Footer

DraftAccessible

The Footer component is located at the bottom of the page below the main body content. It provides a place for secondary navigation, site-wide actions, and additional information.

Code

Code examples

Default

Press Enter to start editing. Press Esc to stop editing.

Color variations

Color variations

Press Enter to start editing. Press Esc to stop editing.
Press Enter to start editing. Press Esc to stop editing.

Utility section variations

Press Enter to start editing. Press Esc to stop editing.
  • The Footer.Link component has the as prop which you can use to use your own navigation link instead of our Footer.Link, which uses HDS Link underneath. You can pass it as an element as={<CustomLink />} or as a component as={CustomLink}.
Press Enter to start editing. Press Esc to stop editing.

Packages

PackageIncludedStorybook linkSource link
HDS React
Yes
View in StorybookView source
HDS Core
No
--

Properties

Table 1: Footer properties
PropertyDescriptionValuesDefault value
ariaLabelAria-label for describing footer.string-
classNameAdditional class names to apply.string-
footerPropsAdditional props for the <footer element.Object-
korosTypeKoros type to use in the footer.KorosType"basic"
themeFooter theme."light "dark" FooterCustomTheme"light"
titleService name.string-

This component also accepts all nativefooter element props.

Following component properties override their native counterparts:

  • ariaLabel overrides the aria-label

Table 2: Footer.Navigation properties
PropertyDescriptionValuesDefault value
ariaLabelAria-label for describing the navigation.string-
roleARIA role to describe the contents.string-

This component also accepts all nativediv element props.

Following component properties override their native counterparts:

  • ariaLabel overrides the aria-label

Table 3: Footer.Link properties
PropertyDescriptionValuesDefault value
ariaLabelAria-label for describing the link.string-
asElement or component to use instead of the default HDS Link.ElementLink
externalBoolean indicating whether the link will lead user to external domain.booleanfalse
hrefHypertext Reference of the link.string-
iconIcon which will display on the left side of the label.ReactNode-
labelLabel for the link.string-
openInNewTabBoolean indicating whether the link will open in new tab.booleanfalse
openInNewTabAriaLabelAria-label for opening link in a new tab.string-
openInExternalDomainAriaLabelAria-label for opening link in an external domain.string-

This component also accepts all nativea element props.

Following component properties override their native counterparts:

  • ariaLabel overrides the aria-label

Table 4: Footer.NavigationGroup properties
PropertyDescriptionValuesDefault value
classNameAdditional classNames for the element.string-
idID for the element.string-
headingLinkFooter.GroupHeading component to display at the top of the group. On smaller screens only this will be displayed.Footer.GroupHeading-

This component also accepts all nativediv element props.

Table 5: Footer.GroupHeading properties
PropertyDescriptionValuesDefault value
asElement or component to use instead of the default native link or <span> when href is omitted.Elementa span
hrefHypertext Reference of the link. If omitted, heading will be a <span>element instead of <a>.string-
idID for the element.string-
labelLabel for the heading.string-

This component also accepts all nativea element props.

Table 6: Footer.Utilities properties
PropertyDescriptionValuesDefault value
ariaLabelAria-label for describing the utilities.string-
soMeLinksArray of Footer.NavigationLinks to display in the social media section.[Footer.NavigationLink]-
soMeSectionPropsAdditional props for the native <section> element which hold the soMeLinks.Object-
roleARIA role to describe the contents.string-

This component also accepts all nativediv element props.

Following component properties override their native counterparts:

  • ariaLabel overrides the aria-label

Table 7: Footer.UtilityGroup properties
PropertyDescriptionValuesDefault value
classNameAdditional classNames for the element.string-
idID for the element.string-
headingLinkFooter.GroupHeading component to display at the top of the group.Footer.GroupHeading-

This component also accepts all nativediv element props.

Table 8: Footer.Custom properties
PropertyDescriptionValuesDefault value
ariaLabelAria-label for describing the custom area.string-
classNameAdditional classNames for the element.string-
idID for the element.string-
roleARIA role to describe the contents.string-

This component also accepts all nativediv element props.

Following component properties override their native counterparts:

  • ariaLabel overrides the aria-label

Table 9: Footer.Base properties
PropertyDescriptionValuesDefault value
ariaLabelAria-label for describing the element.string-
backToTopLabelLabel for the "Back to top" button.string ReactNode-
copyrightHolderText to be displayed next to the copyright symbol.string ReactNode-
copyrightTextText to be displayed after the copyright holder text.string ReactNode-
logoHrefLink for the logo.string-
logoLogo component to use.Logo-
onBackToTopClickCallback fired when the "Back to top" button is clicked.function-
onLogoClickCallback fired when the logo is clicked.function-
roleARIA role to describe the contents.string-
showBackToTopButtonBoolean for whether the "Back to top" button should be shown.boolean-
yearThe year for copyright text. This can be useful in automated tests.string-

This component also accepts all nativediv element props.

Following component properties override their native counterparts:

  • ariaLabel overrides the aria-label