Skip to content

MenuItem

<ts-menu-item> vv0.4.0

The ts-menu-item component.

Open in Storybook for interactive demos.

<ts-menu-item>Content</ts-menu-item>
PropertyAttributeTypeDefaultDescription
disableddisabledbooleanfalseDisables the menu item.
hrefhrefstring | undefinedIf provided, renders the item as a link.
valuevaluestring''The value associated with this menu item.
EventDetailBubblesComposedDescription
tsSelect{ value: string; }YesYesEmitted when the menu item is selected.
MethodSignatureDescription
setFocussetFocus() => Promise<void>Focus the menu item.
NameDescription
*(default)*Default slot for menu item label content.
prefixContent before the label (e.g., icon).
suffixContent after the label (e.g., shortcut or badge).

Use ::part() to style internal elements:

PartDescription
baseThe menu item container element.
labelThe label wrapper.
prefixThe prefix slot wrapper.
suffixThe suffix slot wrapper.
ts-menu-item::part(base) {
/* your custom styles */
}
<ts-menu-item>Content</ts-menu-item>
import { TsMenuItem } from '@tessera-ui/react';
<TsMenuItem>Content</TsMenuItem>