Skip to main content

Submenu Bar
Ready

Submenu Bar is a bar component that contains links and dropdowns.

Open in new window
<duet-submenu-bar>
<span slot="label">Näytä vaihtoehdot</span>
<duet-submenu-bar-dropdown icon="category-car">
<span slot="label">Ajoneuvot</span>
<duet-submenu-bar-dropdown-link>Autovakuutus</duet-submenu-bar-dropdown-link>
<duet-submenu-bar-dropdown-link>Moottoripyörävakuutus</duet-submenu-bar-dropdown-link>
<duet-submenu-bar-dropdown-link>Mopovakuutus</duet-submenu-bar-dropdown-link>
<duet-submenu-bar-dropdown-link>Pakettiautovakuutus</duet-submenu-bar-dropdown-link>
<duet-submenu-bar-dropdown-link>Moottorivenevakuutus</duet-submenu-bar-dropdown-link>
<duet-submenu-bar-dropdown-link>Purjevenevakuutus</duet-submenu-bar-dropdown-link>
<duet-divider margin="none"></duet-divider>
<duet-submenu-bar-dropdown-link caret highlight>Kaikki ajoneuvovakuutukset</duet-submenu-bar-dropdown-link>
</duet-submenu-bar-dropdown>
<duet-submenu-bar-dropdown icon="category-apartment">
<span slot="label">Koti</span>
<duet-submenu-bar-dropdown-link>Kotivakuutus</duet-submenu-bar-dropdown-link>
<duet-submenu-bar-dropdown-link>Mökkivakuutus</duet-submenu-bar-dropdown-link>
<duet-submenu-bar-dropdown-link>Vuokralaisen kotivakuutus</duet-submenu-bar-dropdown-link>
<duet-submenu-bar-dropdown-link>Vuokranantajan vakuutus</duet-submenu-bar-dropdown-link>
</duet-submenu-bar-dropdown>
<duet-submenu-bar-dropdown icon="category-personal">
<span slot="label">Terveys</span>
<duet-submenu-bar-dropdown-link>Tapaturmavakuutus</duet-submenu-bar-dropdown-link>
<duet-submenu-bar-dropdown-link>Sairaskuluvakuutus</duet-submenu-bar-dropdown-link>
<duet-submenu-bar-dropdown-link>Urheiluvakuutus</duet-submenu-bar-dropdown-link>
<duet-submenu-bar-dropdown-link>Vauvavakuutus</duet-submenu-bar-dropdown-link>
<duet-submenu-bar-dropdown-link>Lapsivakuutus</duet-submenu-bar-dropdown-link>
<duet-submenu-bar-dropdown-link>Työkyvyttömyysvakuutus</duet-submenu-bar-dropdown-link>
<duet-divider margin="none"></duet-divider>
<duet-submenu-bar-dropdown-link caret highlight>Kaikki henkilövakuutukset</duet-submenu-bar-dropdown-link>
</duet-submenu-bar-dropdown>
<duet-submenu-bar-link icon="category-travel">Matka</duet-submenu-bar-link>
<duet-submenu-bar-link icon="category-life-insurance">Henki</duet-submenu-bar-link>
<duet-submenu-bar-dropdown icon="category-pet">
<span slot="label">Eläimet</span>
<duet-submenu-bar-dropdown-link>Koiravakuutus</duet-submenu-bar-dropdown-link>
<duet-submenu-bar-dropdown-link>Kissavakuutus</duet-submenu-bar-dropdown-link>
<duet-submenu-bar-dropdown-link>Hevosvakuutus</duet-submenu-bar-dropdown-link>
</duet-submenu-bar-dropdown>
<duet-submenu-bar-link icon="category-forest">Metsä</duet-submenu-bar-link>
</duet-submenu-bar>

Properties #

Property Attribute Description Type Default
accessibleLabel accessible-label Adds accessible label for the button that is only shown for screen readers. Typically, this label text replaces the visible text on the button for users who use assistive technology. string undefined
open open Open boolean false
theme theme Theme. "" | "default" | "turva" ""

Methods #

setFocus(options?: FocusOptions) => Promise<void> #

Sets focus. Use this method instead of the global focus().

Parameters #

Name Type Description
options FocusOptions

Returns #

Type: Promise<void>


Usage #

This section includes guidelines for designers and developers about the usage of this component in different contexts.

When to use #

  • Use as a wrapper element for menus.

When not to use #

  • Don't use it on its own without filling slots.

Accessibility #

This component has been validated to meet the WCAG 2.1 AA accessibility guidelines. You can find additional information regarding accessibility of this component below.


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

Tutorials

Usage With Markdown


Troubleshooting

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