Skip to main content

Menu Item

<sc-menu-item></sc-menu-item>

This component let users create a menu item.

Option 1Option 2Option 3

Component Codex

Properties

PropertyDescriptionTypeDefault
checkedDraws the item in a checked state.booleanfalse
disabledDraws the menu item in a disabled state.booleanfalse
hrefOptional link to follow.string
targetThe target of the link.string
valueA unique value to store in the menu item. This can be used as a way to identify menu items when selected.string''

Methods

setBlur() => Promise<void>

Removes focus from the button.

setFocus(options?: FocusOptions) => Promise<void>

Sets focus on the button.

Shadow Parts

PartDescription
base
checked-icon
label
prefix
suffix