# MenuItem changelog
Read the complete [LICENSE](https://snowui.dev/LICENSE) for the installed version before use.
Reviewed against Chinese source SHA-256 `3a6abade5b2c74bfc40473b1af6a3272cb7c75c76d06340cf5bf69d1ec031fcd`. For version differences, check the installed package as well.
### 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-btn` and `ComponentIcon name="x-circle" weight="fill"`, consistently using `Black/100% × opacity: 0.4 -> 1`; an application IconProvider may replace it.
- Disabled opacity changed from `0.4` to the global specification value of `0.2`.
### v1.2.2 (2026-05-09)
#### Added
- Added the selection-intent field `closeOnSelect`. Clicking an enabled item dispatches `snowui-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-color` transition and aligned with the menu/list item exception in `StyleSpec.md §2.4`.
### v1.2.0 (2026-04-27)
#### Added
- Direct children with `as="leading"` or `as="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 `compact` Prop and `.snowui-menu-item-compact` class 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-layout` or `snowui-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.
[Component guide](https://snowui.dev/llms/en/components/menu-item.md) · [Full reference](https://snowui.dev/llms/en/components/menu-item/reference.md)