Actions and display
Menu
Dropdown / Menu — a trigger button and a positioned menu list.Public export
typescript
import { Menu } from '@happyvertical/smrt-ui/ui';- Import path
@happyvertical/smrt-ui/ui- Props
- 8
- Props described
- 8 of 8
- Bindable state
- 0
- Callback events
- 1
- Verified release
- 0.62.10
Props
NameTypeRequiredDescription
labelstringNoTrigger button text (ignored when a `trigger` snippet is given).triggerSnippetNoCustom trigger content.triggerLabelstringNoAccessible name of the trigger button when it shows only an icon (`aria-label`); omit to use its visible content (an icon trigger then falls back to `label`).variant'button' | 'icon'NoTrigger look: `button` (bordered, the default) or `icon`, a borderless 44px round icon button (a "more" or row-actions menu) that takes the surrounding text colour.itemsMenuItem[]YesMenu items.placementDropdownPlacementNoMenu placement relative to the trigger.onselect(id: string) => voidNoFired with the activated item's id.disabledbooleanNoDisable the trigger.Bindable state
This component has no bindable public state.
Callback events
onselect(id: string) => void