Menu — component.menu
Floating list of action items — a context menu or dropdown menu. Presentational: it renders the items (with optional icon, disabled and danger states); the consumer positions the box and wires clicks via the data-menu-item attribute. Content stays data-driven through the items prop. 1.2.0 (28.10.202
Componentv1.2.0Overlayweb.applicationdesktop.shellbuilder.preview
Beispiele
Node context menu
With a disabled item
Select-style menu (hint + active)
Grouped items (1.2.0: items[].group → one heading per run)
Eigenschaften
| Prop | Typ | Default |
|---|---|---|
items * | array | — |
padding | string: standard | none | sm | md | lg | xl | "standard" |
margin | string: standard | none | sm | md | lg | xl | "standard" |
border | string: standard | none | hairline | strong | "standard" |
radius | string: standard | none | control | surface | pill | "standard" |
textColor | string | "" |
backgroundColor | string | "" |
shadow | string: standard | none | sm | md | lg | "standard" |
width | string: standard | full | "standard" |
alignSelf | string: standard | start | center | end | "standard" |
anchor | string | "" |
Genutzte Design-Tokens
color.action.primary color.text.muted container.2xs duration.fast easing.standard size.1 size.2 text.2xs text.xs tracking.wide weight.semibold