Default
Press it, slide down the list, and the row under the pointer gets the highlighter. Type a letter to jump; the chosen row is bold with a blue tick.
A drop-down field. The trigger is a pencil box with a tick before its chevron; the list is a slip of paper set down over or under it, where the row you are on gets the highlighter and the chosen row is bold with a blue tick. Radix Select underneath: typeahead, keyboard, form value, item-aligned or popper placement.
npx shadcn@latest add @wobko/selectFirst time here? Add the registry to components.json first. How to install
Press it, slide down the list, and the row under the pointer gets the highlighter. Type a letter to jump; the chosen row is bold with a blue tick.
Kicker labels, pencil rules between groups, and scroll arrows when the slip runs out of room. Radix's item-aligned placement (the default) lays the chosen row over the field.
Default and sm, invalid (red pencil box, a bang before the chevron), disabled (dashed, pale) and a disabled row inside the list.
A controlled select and a native-form select in one form: `name` puts the chosen value in FormData (Radix keeps a hidden native select in sync), `required` blocks the submit.
Official `select-demo`: a 180 px trigger with a placeholder and one labeled group of fruit. The trigger is a drawn field with a hand-drawn chevron; the list is a slip, the pointed-at row wears the highlighter and the chosen one a felt tick. Type a letter to jump to a fruit. Only addition: an `aria-label` on the trigger, because a placeholder is not a name.
Official `select-scrollable`: twenty-eight time zones in five groups, far taller than the screen allows. The list keeps to the space Radix says is available and scrolls, with a chevron at each end that scrolls it while you hold the pointer over it. Only addition: an `aria-label` on the trigger, because a placeholder is not a name.
The field you press: a `<button role="combobox">` with the Input's pencil box drawn behind it.
| Prop | Type | Default | Description |
|---|---|---|---|
| size | "default" | "sm" | "default" | 36 px or 32 px tall (28 px in calm density). |
| aria-invalid | boolean | "true" | "false" | - | true draws the red pencil box with a wavy underline and a bang before the chevron. |
| disabled | boolean | - | Dashed pencil on a pale wash. Not focusable, no hover. |
| seed | string | number | - | Pins the hand: the same seed always draws the same box. Default: derived from useId(). |
The list: a Paper slip that is also the Radix listbox. A CSS sheet, no SVG. The viewport scrolls, not the paper, so the shadow and any tape stay whole. Every Radix Content prop passes through.
| Prop | Type | Default | Description |
|---|---|---|---|
| position | "item-aligned" | "popper" | "item-aligned" | `item-aligned` lays the chosen row over the value in the field (Radix's default); `popper` opens under (or over) it and matches its width. |
| align | "start" | "center" | "end" | "center" | Alignment against the trigger in popper mode. |
| stock | StockName | "slip" | What the list is cut from: slip, paper, kraft, sticky-* ... |
| edge | EdgeSpec | "cut" | Cut (pure CSS), torn, deckle ... A drawn edge is measured when the list opens. |
| tilt | boolean | number | true | A small seeded tilt of the sheet; text stays upright. |
| tape | "corner" | "top" | "both" | false | false | Strips of masking tape holding the slip. |
The files the CLI copies into your project.
Loading the source