

Every state


default


focus


open


hover-row


chosen


keyboard
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
| options | { value: string; label: string }[] | The orders you offer: a value and its label. | Eight orders: most relevant, newest, price both ways, rating, popularity, name both ways. |
| defaultValue | string | "relevance" | Chosen value when uncontrolled. |
| value | string | – | Chosen value when controlled. |
| onValueChange | (value: string) => void | – | Called with the new value when a row is chosen. |
| label | string | "Sort by" | Small label on the trigger and the menu heading. |
| defaultOpen | boolean | – | Opens the menu on mount (previews). |
| className | string | – | Extra classes on the wrapper. |


