Accessible, keyboard-navigable dropdown menu. Use the trigger slot for the button that opens it, the default slot for its items — typically <DropdownItem>/<DropdownLabel>/<DropdownSeparator>.
Props
| Type | Name | Description |
|---|---|---|
| import(‘svelte’).Snippet | trigger |
The trigger element |
| import(‘svelte’).Snippet | children |
The menu items |
| ‘start’ | ‘end’ | align? |
Alignment of the dropdown |
| string | class? |
Optional class |
| string | label? |
Accessible native trigger label (recommended) |
| string | triggerClass? |
Classes on the native trigger |
| boolean | open? |
Bindable open state |