Function: SelectItem()
SelectItem(
__namedParameters):Element
Select item component for individual options in a dropdown.
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”SelectItemProps & RefAttributes<HTMLDivElement>
Returns
Section titled “Returns”Element
Warning
Section titled “Warning”SelectItem cannot have value=“”. Use a sentinel value like “all” or “none” instead due to Radix UI constraint.
Example
Section titled “Example”<SelectItem value="option1">Option 1</SelectItem><SelectItem value="all">All Items</SelectItem> // Use "all" instead of ""