ListItem

Base list item component for interactive list items in menus and selects.

Since ariaActiveDescendant is used, list items are not actually focused, instead, use :state(focused) in CSS or handle custom behaviors by overriding changed().

Properties

NameTypeDefaultDescription
selectedBooleanfalseWhether the list item is selected.
focusedBooleanfalseWhether the list item has focus.
disabledBooleanfalseWhether the list item is disabled (inherited from FormAssociated).

Methods

NameDescription
focus()Visually sets the focused state to true.
blur()Visually sets the focused state to false.