MenuItem
Imports
import {MenuItem} from 'material-expressive-react';
import {MenuItem} from 'material-expressive-react/menu';
Props
| Prop | Type | Default | Required | Description |
|---|---|---|---|---|
| disabled | boolean | No | ||
| label | string | Yes | ||
| leadingIcon | ReactNode | No | ||
| showSelectedIcon | boolean | true | No | If false, do not replace trailing icon with a checkmark when selected. |
| trailingIcon | ReactNode | No | ||
| value | string | Yes |
Events
This component does not explicitly re-emit DOM events via wrapper props.
Slots
Material Web components frequently use named slots. In React, you can pass slot="..." on children (e.g. <Icon slot="icon" />).
If you need to slot a child component that does not accept a slot prop, use the Slotted utility (see Utilities → Slotted).
Examples
See Storybook for live examples and variants.