Skip to content

Action menu - Web Component

Browser support

Detected engine:  

  • Chromium

  • Webkit

  • Gecko

Parameters

The Web component uses the <z-action-menu> tag:

By default, all the parameters are optional or can be set in different, except for the ones marked as required

The parametrization of the component can be done with the following custom HTML params:

NameTypeDescriptionSlot
contentstringText of the dropdowndefault
elementsObject[]Array of dropdown elements

The available slots for the component are:

NameTagsDescription
defaultspanContent of the action menu
elementsspanAction menu elements

INFO

Check the z-action-menu anatomy to know the specifications for this component. Use the Playground to see how you can customize this component.

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.

Example

Playground

Customization

HTML Examples

StackBlitz example