eds-footer

Explore the Interactive Component

Use the playground below to experiment with the component. Click the button to view the full Storybook deployment for additional examples and configurations.

eds-footer Open in Storybook

See It in Use with Code

Check out this practical implementation of component.

In HTML

Custom Columns

Pass columns as a JSON string to replace the default link columns. A link with "action": "cookies" renders only when enable-cookies-settings is set, and emits the cookies event when clicked:

In React and Vue

Overview

EdsFooter is the EBRAINS-wide footer component.

Renders a 4-column layout matching the eds-docs landing footer: [ Brand (EU flag + funding text + copyright) | Resources | Community | Legal ]

Defaults are designed so a consumer that writes <eds-footer></eds-footer> with no props gets the full canonical EBRAINS footer rendered — same brand block, same link columns, same dark theme as the eds-docs landing page. The previous minimal-strip footer is replaced; consumers that need different link content pass the columns prop (array or JSON-stringified array for HTML attribute use).

Configurability without breakage:

  • All previous props remain (social, variant, fundedBy, rightsReserved, enableScrollTop, enableCookiesSettings, cookiesPreferences, backToTopAriaLabel). Their meanings are preserved.
  • New columns prop is optional — omit it for the defaults.
  • The enableCookiesSettings toggle now decides whether any column link with action: 'cookies' is rendered (default false; pass true to surface the Cookie preferences entry in the Legal column).

Properties

PropertyAttributeDescriptionTypeDefault
backToTopAriaLabelback-to-top-aria-labelARIA label for the “Back to top” floating button.string'Back to top'
columnscolumnsCustom link columns. Accepts an array (Vue/React/JS bindings) OR a JSON-stringified array (HTML attribute use). When omitted, the canonical EBRAINS-wide columns above are used. Shape: see EdsFooterColumn / EdsFooterLink at the top of this file.EdsFooterColumn[] | stringundefined
cookiesPreferencescookies-preferencesLabel used for any link with action: 'cookies' — overrides the column’s label.string'Cookie preferences'
enableCookiesSettingsenable-cookies-settingsWhen false, any column link with action: 'cookies' is hidden. Default false so adding the footer to a page without a Matomo notice / cookie banner doesn’t surface a non-functional link. Set true once you’ve also mounted <eds-matomo-notice> on the page.booleanfalse
enableScrollTopenable-scroll-topFloat a “Back to top” button at the top-right of the footer.booleanfalse
fundedByfunded-by“EBRAINS is funded by…” line shown next to the EU flag in the brand column.string'EBRAINS is funded by the Horizon Europe Framework Programme.'
rightsReservedrights-reserved“© {year} EBRAINS. All rights reserved.” line shown below the funding text.string${new Date().getFullYear()} EBRAINS. All rights reserved.
socialsocialShow the eds-social-networks section above the main grid.booleanfalse
variantvariantTheme variant. Defaults to inverse (dark) because the canonical EBRAINS footer design uses a dark backdrop with light text. Pass variant="default" for the light-on-light treatment if an app’s page palette demands it."default" | "inverse"'inverse'

Events

EventDescriptionType
cookiesCustomEvent<any>

CSS Custom Properties

NameDescription
--eds-footer-pad-xThe footer’s left and right padding. Defaults to the page container’s outer gutter (16px, 20px from 750px, 28px from 900px), so the footer lines up with container max-w-default content above it.

Dependencies

Used by

  • eds-fullscreen-menu

Depends on

Graph

graph TD;
  eds-footer --> eds-social-networks
  eds-footer --> eds-button
  eds-social-networks --> eds-icon-wrapper
  eds-button --> eds-icon-wrapper
  eds-fullscreen-menu --> eds-footer
  style eds-footer fill:#f9f,stroke:#333,stroke-width:4px

Built with StencilJS