Invisible Docs
GalerieTokens

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

PropTypDefault
items *array—
paddingstring: standard | none | sm | md | lg | xl"standard"
marginstring: standard | none | sm | md | lg | xl"standard"
borderstring: standard | none | hairline | strong"standard"
radiusstring: standard | none | control | surface | pill"standard"
textColorstring""
backgroundColorstring""
shadowstring: standard | none | sm | md | lg"standard"
widthstring: standard | full"standard"
alignSelfstring: standard | start | center | end"standard"
anchorstring""

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