Skip to main content

Footer
Ready

Footer component is used as the global footer for all views. Contains copyright data and links to related documents.

Footer contains your application’s secondary menu items that perform an action when clicked. Each action in the footer should navigate to a href or trigger another action like a modal overlay.

Examples

Properties #

Property Attribute Description Type Default
items items An array of items for the main footer links. Items have to include mandatory "label", "href" and "icon" fields to work. Additionally, you can pass an "id" that is added as an HTML identifier for the anchor tag. any undefined
language language The currently active language. This setting changes the logo to match the chosen language. Can be one of: "fi", "en", "sv". "en" or "fi" or "sv" "fi"
logoHref logo-href URL that the logo link points to. string "/"
margin margin Controls the margin of the component. Can be one of: "auto", "none". "auto" or "none" "auto"
menu menu An array of items for the small footer menu. Items have to include mandatory "label" and "href" fields to work. Additionally, you can pass an "id" that is added as an HTML identifier for the anchor tag. any undefined
theme theme Theme of the navigation. Can be one of: "default", "turva". "" or "default" or "turva" ""
variation variation Style variation of the footer. Can be one of: "default", "simple". "default" or "simple" "default"

Events #

Event Description Type
duetAnalytics Event raised when an items with an associated analytics ID is clicked. Analytics ID can be accessed via event.detail.analyticsId CustomEvent<{ analyticsId: string; component: "duet-footer"; }>
duetChange Callback for when a user is about to navigate to another page. You can prevent the default browser functionality by calling event.detail.originalEvent.preventDefault() inside your listener. Additionally, the passed data is available via event.detail.data. CustomEvent<{ component: "duet-footer"; data: DuetFooterItem or DuetFooterIconItem; originalEvent: Event; }>

Methods #

refresh() => Promise<void> #

Forces render() update for duet-nav. Use this when e.g. changing the global language.

Returns #

Type: Promise<void>

Dependencies #

Depends on #

Graph #

graph TD;
duet-footer --> duet-logo
duet-footer --> duet-visually-hidden
style duet-footer fill:#f9f,stroke:#333,stroke-width:4px

Integration

For integration, event and theming guidelines, please see Using Components. This documentation explains how to implement and use Duet’s components across different technologies like Angular, React or Vanilla JavaScript.



Tutorials

Follow these practical tutorials to learn how to build simple page layouts using Duet’s CSS Framework, Web Components and other features:

Tutorials

Building Layouts

Tutorials

Using CLI Tools

Tutorials

Creating Custom Patterns

Tutorials

Server Side Rendering

Tutorials

Sharing Prototypes


Troubleshooting

If you experience any issues while using a component, please head over to the Support page for more guidelines and help.