Skip to content

ActionMenu ⚠️ Experimental

The ActionMenu component can be used imported from:

Playground

Parameters

Slots

This component has slots. Check the documentation about how to use the slots.

NameTagsDescription
defaultspanContent of the action menu
elementsspanAction menu elements
searchspanContent on top of the menu

Parameters use

Check the documentation about how to use the parameters.

elements

The elements attribute is used to set the elements of the dropdown menu.

Example

The elements object also allows nested elements.

Example

The elements object also allows sections and separators.

Example

Finally the elements object also allows icons.

Example

Alternatively, you can use the elements slot to set the elements of the dropdown menu. We use specific components per type of element:

  • <a> for link and sub-menu (in case of more elements). For defining a sub-navigation use the attribute data-text for the link text and place the children of the menu inside:
  • <span> for section header

Browser support

Detected engine:  

  • Chromium

  • Webkit

  • Gecko

CodeSandbox example

Sorry, not available yet ☹️