Skip to main content
LocalTapiola Turva

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 #

PropertyAttributeDescriptionTypeDefault
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
languagelanguageThe currently active language. This setting changes the logo to match the chosen language. Can be one of: "fi", "en", "sv".string"fi"
logoHreflogo-hrefURL that the logo link points to.string"/"
marginmarginControls the margin of the component. Can be one of: "auto", "none".string"auto"
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
themethemeTheme of the navigation. Can be one of: "default", "turva".string""

Events #

EventDescriptionType
duetChangeCallback for when an user is about to navigate to another page. You can prevent the default browser functionality by calling event.detail.originalEvent.preventDefault() inside yout listener. Additionally, the passed data is available via event.detail.data.CustomEvent<any>

Dependencies #

Depends on #

Graph #

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

Integration

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