Skip to content

Function: SelectItem()

SelectItem(__namedParameters): Element

Select item component for individual options in a dropdown.

SelectItemProps & RefAttributes<HTMLDivElement>

Element

SelectItem cannot have value=“”. Use a sentinel value like “all” or “none” instead due to Radix UI constraint.

<SelectItem value="option1">Option 1</SelectItem>
<SelectItem value="all">All Items</SelectItem> // Use "all" instead of ""