Represents an item in a select list.
- Slots
-
default— Renders all content except the prefix and suffix. -
prefix— Renders content before the main content area. -
suffix— Renders content after the main content area.
- CSS Parts
-
prefix— The prefix wrapper of the select item. -
content— The main content wrapper of the select item. -
suffix— The suffix wrapper of the select item.
Properties
Section titled "Properties"active
Section titled "active"Whether the item is active. The active item is the target of keyboard navigation and the only item in the tab order.
active: boolean active
Section titled "active"Whether the item is active. The active item has the visual focus during keyboard navigation.
active: boolean selected
Section titled "selected"Whether the item is selected. A change also sets active to the same
value.
selected: boolean value
Section titled "value"The value of the item. Falls back to the text content of the element.
value: string