When To Use

If there are too many operations to display, you can wrap them in a Dropdown. By clicking on the trigger, a dropdown menu should appear, which allows you to choose one option and execute relevant actions.

Use the `Dropdown` component with a `trigger` slot to define the toggle element. Inside, use `DropdownItem` and `DropdownItemDivider` to build the menu.

Nested Submenus

You can create deep, cascading context menus by using the `submenu` slot inside a `DropdownItem`.

API Reference

Property
Description
Type
Default

placement

Preferred placement of the dropdown relative to the trigger. 'bottom-start' | 'bottom-end' | 'top-start' | 'top-end' | 'right-start' | 'left-start' 'bottom-start'

triggerType

Event type that opens the menu. 'click' | 'contextmenu' 'click'

class

Custom classes for the dropdown content container. string -
Property
Description
Type
Default

class

Custom classes for the item. string '-'

icon

Icon name to display to the left. IconName '-'

disabled

Disables the item. boolean false

href

URL to navigate to when clicked. string '-'

shortcut

Keyboard shortcut hint. string '-'

checked

Whether the item represents a checked state. boolean false

intent

Visual intent color. 'default' | 'danger' 'default'