MenuItem changelog
v1.3.0 (2026-10-22)
Ordinary labels use the shared Frame single-line preset. Complex multiline children can explicitly opt out. Option registration, selection, menu closing and deletion remain unchanged.
v1.2.4 (2026-10-20)
The built-in action for deleting a custom option follows LocaleProvider. Query text, option names, and values remain unchanged; the owning Listbox still manages deletion.
2026-09-21: Aligned the usage guide, source Prop table, and Site / AI reading entry. Documentation only; component behavior is unchanged.
v1.2.3 (2026-05-31)
Style adjustments
The delete X on custom items now reuses
.snowui-clear-icon-btnandComponentIcon name="x-circle" weight="fill", consistently usingBlack/100% × opacity: 0.4 -> 1; an application IconProvider may replace it.Disabled opacity changed from
0.4to the global specification value of0.2.
v1.2.2 (2026-05-09)
Added
Added the selection-intent field
closeOnSelect. Clicking an enabled item dispatchessnowui-menu-item-select; the parent popup decides whether to close.
v1.2.1 (2026-05-01)
Improvements
Hover / active backgrounds keep immediate menu-item highlighting. Removed the
background-colortransition and aligned with the menu/list item exception inStyleSpec.md §2.4.
v1.2.0 (2026-04-27)
Added
Direct children with
as="leading"oras="trailing"now participate in the root three-slot layout. Custom trailing content replaces the default check slot; composite slots use an 8px gap by default.
v1.1.0 (2026-04-25)
Breaking changes
Removed the
compactProp and.snowui-menu-item-compactclass output. MenuItem always uses 8px padding in Listbox and QuickAction.
v1.0.1 (2026-04-25)
Improvements
Simplified the check icon DOM: it now directly renders
svg[data-as="trailing"]instead of an internal Icon component, retaining three-slot layout and selected-state styling.Simplified label and check output attributes: internal component CSS lays out label content, without
data-auto-layoutorsnowui-direction-row; CSS now sets check SVG size.
v1.0.0 (2026-04-25)
Added
Unified MenuItem and QuickActionItem as one MenuItem component.
Automatically detects
ListboxOwnerContext: registers and derives state when Context exists, otherwise uses Props.Listbox and QuickAction scenarios both use 8px padding.