<!-- generated by scripts/gen-docs.mjs from docs/system/select.md. Edit the source and rerun. -->
# Select

## Description
Picks one of up to 10 known options and sends it with the form.

`import { Select, SelectTrigger, SelectValue, SelectContent, SelectGroup, SelectItem } from "@/components/cobalt/ui/select"`, source `registry/cobalt/ui/select.tsx`, status `ready-with-gaps`.
Foundation: `shadcn select (base-luma, base)`. Traps checked: `trap/field-label`, `trap/label-unbound`, `trap/field-error-link`, `trap/field-keeps-input`, `trap/select-value-lost`, `trap/select-empty-value`, `trap/select-async`, `trap/control-height`, `trap/focus-ring-shape`, `trap/hover-beats-focus`, `trap/disabled-still-hovers`, `trap/open-trigger-unfocused`, `trap/motion-origin`, `trap/required-everywhere`, `trap/field-error-timing`.

Where each trap is answered: `trap/field-label` and `trap/label-unbound` through `rule/input-has-a-label`, the trigger is a button that registers with the `Field` on its own (Base UI), so the `FieldLabel` names it; `trap/field-error-link` through `rule/input-error-is-linked`; `trap/field-keeps-input` and `trap/select-value-lost` in `rule/select-value-survives-reload`; `trap/select-empty-value` in `rule/select-placeholder-when-empty`; `trap/control-height` in Tokens, measured 38px against the 36px token, logged; `trap/focus-ring-shape` and `trap/open-trigger-unfocused` in States: Tab focus draws the field's accent edge and soft ring (`field-focus`), the same as Input and Textarea beside it, and the fill does not change while open; `trap/motion-origin` in Motion, the list fades in below the trigger when it animates, with no origin to set because nothing scales; `trap/required-everywhere` through `rule/label-marks-the-rarer`; `trap/field-error-timing` through `rule/field-error-when-settled`. Not applicable: `trap/select-async`, the options are a fixed `items` list with no loading state, so nothing can flash as empty while loading; `trap/hover-beats-focus` and `trap/disabled-still-hovers`, the trigger has no hover look and a disabled trigger changes nothing under the pointer (measured, .design-system/evidence/select/states-390.json).

### Foundation
| Given by the foundation | Added by the team |
|---|---|
| Base UI `Select`: a `<button type="button" role="combobox">` trigger with `aria-haspopup="listbox"` and `aria-expanded`, a hidden input that carries `name` and the value to the form, a portaled listbox of options with typeahead, arrow keys, Home and End, focus moved to the selected option on open and back to the trigger on close, and the popup aligned so the selected option sits over the trigger (`alignItemWithTrigger`) | The trigger in the field look: `bg-input/50`, no border and no ring, `min-h-(--control)` with `size="sm"` at `--control-sm`, the chevron in `--muted-foreground`, the invalid wash and the placeholder ink; the list on `--popover` at `--r-3xl` with `--shadow-floating` and 8px padding, options 38px tall at `--r-xl` and regular weight with the grey fill only under the pointer or the arrows, and a check in `--primary-ink` on the selected one, the same check as `DropdownMenuCheckboxItem`; `SelectGroup` adds no padding, so grouped and ungrouped options sit at the same inset; `popup-motion` when the list is not aligned with the trigger; the portal container from `registry/cobalt/lib/portal.tsx` so the list stays inside the system's scope `max-w-full` on the trigger, so a long value or placeholder truncates inside the column instead of running out of it; logical sides on the option, `ps-2.5 pe-9` and the check at `end-2.5`, and `text-start` on the value, so right-to-left text puts the check and the words on the correct sides (`docs/research/2026-10-16-break-ui-inputs.md`); the second click of the double-click that opened the list dropped, so it neither closes it nor picks the option under the pointer (`guardOpeningClick`, measured at 1440 in `.design-system/evidence/sheet/phone-sheet-family-2026-10-17.json`); below 640px the sheet of the family `sheet.tsx` heads, the grabber over the options, the list the part that scrolls, and the swipe that closes it (`SelectSheet`, `registry/cobalt/ui/select.tsx:151`). |

## Examples
A labelled select that shows its placeholder until a room is chosen, then the room's name.

Real uses, 0 call sites (`rg -n "<Select\b" app docs/system/examples --glob '!docs/system/examples/select/*'`): the showcase chrome renders no Select of its own, and the examples and registry folders do not count. No other example uses it yet.

### Example files
| File | Covers | Caption |
|---|---|---|
| `docs/system/examples/select/default.tsx` | default | A labelled select that shows its placeholder until a room is chosen, then the room's name |
| `docs/system/examples/select/default.tsx` | size=default | 36px tall, for a form column or a row of controls |
| `docs/system/examples/select/size-sm.tsx` | size=sm | 32px tall, for a card's header or a table row, named by aria-label where no label shows |
| Not applicable: the select in default.tsx has no value and shows its placeholder | state:empty | The placeholder in the muted ink, `data-placeholder` on the trigger |
| Not applicable: the select in in-field.tsx holds US dollar | state:filled | The option's label in the ink |
| Not applicable: click any trigger, or press ArrowDown on it | state:open | The list over the trigger, the selected option under focus |
| Not applicable: no hover look on the trigger; an option under the pointer takes the grey fill | state:hover | Nothing changes on the trigger |
| Not applicable: reached with Tab on any example | state:focus-visible | The field's accent edge and soft ring on the trigger, as on Input |
| `docs/system/examples/select/state-disabled.tsx` | state:disabled | Disabled through the Field: it keeps its value at half opacity, does not open, and says why |
| `docs/system/examples/select/state-invalid.tsx` | state:invalid | A red wash on the trigger, with the Field's error linked to it until a room is chosen |
| `docs/system/examples/select/state-overflow.tsx` | state:overflow | Ten options, the most a Select takes; where the screen is short, the list scrolls inside the popup with an arrow at each end |
| Not applicable: open in-field.tsx, the selected option carries the check mark | state:selected | The accent check at the option's end, no fill |
| Not applicable: move over or arrow to any option in an open list | state:highlighted | The grey fill under the pointer or the arrow keys |
| `docs/system/examples/select/in-field.tsx` | composition:Field | The field's label names the trigger, and its description says what the choice changes |
| `docs/system/examples/select/with-flags.tsx` | composition:Flag | Each option and the chosen value lead with the country's flag |

Example: A labelled select that shows its placeholder until a room is chosen, then the room's name (`docs/system/examples/select/default.tsx`)

```tsx
import { Field, FieldLabel } from "@/components/cobalt/ui/field";
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/cobalt/ui/select";

const rooms = [
  { value: "harbour", label: "Harbour room, seats 12" },
  { value: "garden", label: "Garden room, seats 8" },
  { value: "library", label: "Library, seats 20" },
  { value: "boardroom", label: "Boardroom, seats 20" },
];

export default function Example() {
  return (
    <Field className="w-full max-w-xs">
      <FieldLabel>Meeting room</FieldLabel>
      <Select items={rooms}>
        <SelectTrigger className="w-full">
          <SelectValue placeholder="Choose a room" />
        </SelectTrigger>
        <SelectContent>
          {rooms.map((room) => (
            <SelectItem key={room.value} value={room.value}>
              {room.label}
            </SelectItem>
          ))}
        </SelectContent>
      </Select>
    </Field>
  );
}
```

Example: The field's label names the trigger, and its description says what the choice changes (`docs/system/examples/select/in-field.tsx`)

```tsx
import { Field, FieldDescription, FieldLabel } from "@/components/cobalt/ui/field";
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/cobalt/ui/select";

const currencies = [
  { value: "USD", label: "US dollar" },
  { value: "EUR", label: "Euro" },
  { value: "GBP", label: "Pound sterling" },
  { value: "JPY", label: "Japanese yen" },
];

export default function Example() {
  return (
    <Field className="w-full max-w-xs">
      <FieldLabel>Reporting currency</FieldLabel>
      <Select defaultValue="USD" items={currencies}>
        <SelectTrigger className="w-full">
          <SelectValue />
        </SelectTrigger>
        <SelectContent>
          {currencies.map((currency) => (
            <SelectItem key={currency.value} value={currency.value}>
              {currency.label}
            </SelectItem>
          ))}
        </SelectContent>
      </Select>
      <FieldDescription>Fund assets and fees are shown in this currency.</FieldDescription>
    </Field>
  );
}
```

Example: Each option and the chosen value lead with the country's flag (`docs/system/examples/select/with-flags.tsx`)

```tsx
import { Flag } from "@/components/cobalt/ui/flag";
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/cobalt/ui/select";

const domiciles = [
  { value: "KY", label: "Cayman Islands" },
  { value: "IE", label: "Ireland" },
  { value: "JE", label: "Jersey" },
  { value: "LU", label: "Luxembourg" },
  { value: "GB", label: "United Kingdom" },
  { value: "US", label: "United States" },
];
const nameOf = (code: string) => domiciles.find((d) => d.value === code)?.label ?? code;

export default function Example() {
  return (
    <div className="flex w-full max-w-xs flex-col gap-1.5">
      <p id="domicile-label" className="text-sm font-medium">
        Domicile
      </p>
      <Select defaultValue="LU" items={domiciles}>
        <SelectTrigger aria-labelledby="domicile-label" className="w-full">
          <SelectValue>
            {(code: string) => (
              <span className="flex min-w-0 items-center gap-2">
                <Flag code={code} decorative />
                <span className="truncate">{nameOf(code)}</span>
              </span>
            )}
          </SelectValue>
        </SelectTrigger>
        <SelectContent>
          {domiciles.map((d) => (
            <SelectItem key={d.value} value={d.value}>
              {/* The name is the option's text, so the flag beside it is not read. */}
              <Flag code={d.value} decorative />
              {d.label}
            </SelectItem>
          ))}
        </SelectContent>
      </Select>
    </div>
  );
}
```

## Variants

### size
- `default`: `--control` tall, for a form column or a row of controls. Used at 1 call site in the examples before this spec's files, `docs/system/examples/select/default.tsx:17`.
- `sm`: `--control-sm` tall, for a toolbar or a table row. Used at 1 call site, `docs/system/examples/select/size-sm.tsx:11`.

Example: 36px tall, for a form column or a row of controls (`docs/system/examples/select/default.tsx`)

```tsx
import { Field, FieldLabel } from "@/components/cobalt/ui/field";
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/cobalt/ui/select";

const rooms = [
  { value: "harbour", label: "Harbour room, seats 12" },
  { value: "garden", label: "Garden room, seats 8" },
  { value: "library", label: "Library, seats 20" },
  { value: "boardroom", label: "Boardroom, seats 20" },
];

export default function Example() {
  return (
    <Field className="w-full max-w-xs">
      <FieldLabel>Meeting room</FieldLabel>
      <Select items={rooms}>
        <SelectTrigger className="w-full">
          <SelectValue placeholder="Choose a room" />
        </SelectTrigger>
        <SelectContent>
          {rooms.map((room) => (
            <SelectItem key={room.value} value={room.value}>
              {room.label}
            </SelectItem>
          ))}
        </SelectContent>
      </Select>
    </Field>
  );
}
```

Example: 32px tall, for a card's header or a table row, named by aria-label where no label shows (`docs/system/examples/select/size-sm.tsx`)

```tsx
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/cobalt/ui/select";

const periods = ["This week", "This month", "This year"].map((label) => ({ value: label, label }));

export default function Example() {
  return (
    <div className="flex w-full max-w-sm items-center justify-between gap-3">
      <p className="text-sm font-medium">Bookings</p>
      <Select defaultValue="This month" items={periods}>
        <SelectTrigger size="sm" className="w-36" aria-label="Period">
          <SelectValue />
        </SelectTrigger>
        <SelectContent>
          {periods.map((period) => (
            <SelectItem key={period.value} value={period.value}>
              {period.label}
            </SelectItem>
          ))}
        </SelectContent>
      </Select>
    </div>
  );
}
```

## States
| State | Trigger | What the user can do | Shown by, besides color | Checked by |
|---|---|---|---|---|
| empty | no value | open the list | the placeholder text, `data-placeholder` on the trigger | test |
| filled | a value | open the list, change it | the option's label in the trigger | test |
| hover | pointer over the trigger, under `(hover: hover)` | click to open | nothing changes on the trigger | by hand |
| focus-visible | Tab to the trigger | open with Enter, Space or an arrow key | `field-focus`: a 1px `--primary` edge inside and a 3px ring at 20 percent outside, the same as Input and Textarea, so a form shows one focus style (D40); a click shows nothing, as a click into a field shows only the caret | by hand |
| open | click, Enter, Space, ArrowDown or ArrowUp on the trigger | move with the arrows, type to jump, pick with Enter or Space, leave with Escape | the list, `aria-expanded="true"` and `data-popup-open` on the trigger, focus on the selected option; the trigger's look does not change, logged | test |
| highlighted option | pointer over an option, or the arrow keys | pick it | the grey fill, `data-highlighted` | by hand |
| selected option | the option whose value is the Select's | pick another | the check in `--primary-ink` at the option's end, `aria-selected`; no fill | by hand |
| disabled option | `disabled` on a `SelectItem` | nothing; the arrows skip it | half opacity, no pointer | by hand |
| disabled | `disabled` on the root | nothing; the trigger leaves the tab order | half opacity, `disabled` and `tabindex="-1"` on the trigger | test |
| invalid | `aria-invalid` on the trigger, or from `Field` when a `FieldError` renders | pick a value | the error text tied by `aria-describedby`, read after the name | test |
| overflow | more options than fit in `--available-height` | scroll the list, or hold the pointer on an arrow | the scroll arrows at the list's ends; measured 10 of 24 options in view at 390x844 | screenshot |
| sheet | the screen is under 640px and `phone` is `sheet` | pick an option, Escape, press the scrim, swipe it down | the list as a sheet along the bottom over the scrim, the grabber in a 24px strip at its top, 44px options, the page behind held still, `data-sheet`; measured 390x206 for the default example (`.design-system/evidence/sheet/phone-sheet-family-2026-10-17.json`) | screenshot |
| swiping | a finger on the sheet moving down while the list is at its top, or the mouse on the grabber | let go past 30 percent of the sheet, or flick, to close it without a choice; let go short of that to keep it | the sheet under the finger, the scrim clearing with it, `data-swiping` on both | by hand |

Pending is not a state of the Select: the form's `StateButton` carries it (`rule/button-keeps-its-box-when-busy`). The trigger text is 14px; a phone zooms only text inputs and native selects on focus, and the trigger is a button.

Example: Disabled through the Field: it keeps its value at half opacity, does not open, and says why (`docs/system/examples/select/state-disabled.tsx`)

```tsx
import { Field, FieldDescription, FieldLabel } from "@/components/cobalt/ui/field";
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/cobalt/ui/select";

const roles = ["Member", "Organiser", "Owner"].map((role) => ({ value: role, label: role }));

export default function Example() {
  return (
    <Field disabled className="w-full max-w-xs">
      <FieldLabel>Role</FieldLabel>
      <Select defaultValue="Owner" items={roles}>
        <SelectTrigger className="w-full">
          <SelectValue />
        </SelectTrigger>
        <SelectContent>
          {roles.map((role) => (
            <SelectItem key={role.value} value={role.value}>
              {role.label}
            </SelectItem>
          ))}
        </SelectContent>
      </Select>
      <FieldDescription>Make someone else the owner before changing this role.</FieldDescription>
    </Field>
  );
}
```

Example: A red wash on the trigger, with the Field's error linked to it until a room is chosen (`docs/system/examples/select/state-invalid.tsx`)

```tsx
import { useState } from "react";

import { Field, FieldError, FieldLabel } from "@/components/cobalt/ui/field";
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/cobalt/ui/select";

const rooms = [
  { value: "harbour", label: "Harbour room, seats 12" },
  { value: "garden", label: "Garden room, seats 8" },
  { value: "library", label: "Library, seats 20" },
];

export default function Example() {
  // Shown as after a submit with no room; it leaves as soon as one is chosen.
  const [room, setRoom] = useState<string | null>(null);
  return (
    <Field className="w-full max-w-xs">
      <FieldLabel>Meeting room</FieldLabel>
      <Select items={rooms} value={room} onValueChange={setRoom}>
        <SelectTrigger className="w-full">
          <SelectValue placeholder="Choose a room" />
        </SelectTrigger>
        <SelectContent>
          {rooms.map((item) => (
            <SelectItem key={item.value} value={item.value}>
              {item.label}
            </SelectItem>
          ))}
        </SelectContent>
      </Select>
      {room === null && <FieldError>Choose a room for the meeting.</FieldError>}
    </Field>
  );
}
```

Example: Ten options, the most a Select takes; where the screen is short, the list scrolls inside the popup with an arrow at each end (`docs/system/examples/select/state-overflow.tsx`)

```tsx
import { Field, FieldLabel } from "@/components/cobalt/ui/field";
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/cobalt/ui/select";

// One office per row; a longer list belongs in a Combobox, which filters as you type.
const offices = [
  { value: "Pacific/Auckland", label: "Auckland" },
  { value: "Australia/Sydney", label: "Sydney" },
  { value: "Asia/Tokyo", label: "Tokyo" },
  { value: "Asia/Singapore", label: "Singapore" },
  { value: "Asia/Dubai", label: "Dubai" },
  { value: "Europe/Berlin", label: "Berlin" },
  { value: "Europe/Lisbon", label: "Lisbon" },
  { value: "America/Sao_Paulo", label: "São Paulo" },
  { value: "America/New_York", label: "New York" },
  { value: "America/Los_Angeles", label: "Los Angeles" },
];

export default function Example() {
  return (
    <Field className="w-full max-w-xs">
      <FieldLabel>Office</FieldLabel>
      <Select defaultValue="Europe/Lisbon" items={offices}>
        <SelectTrigger className="w-full">
          <SelectValue />
        </SelectTrigger>
        <SelectContent>
          {offices.map((office) => (
            <SelectItem key={office.value} value={office.value}>
              {office.label}
            </SelectItem>
          ))}
        </SelectContent>
      </Select>
    </Field>
  );
}
```

### State precedence
- Disabled and open: disabled wins. The trigger does not open and leaves the tab order.
- Disabled and invalid: disabled wins. The wash fades with the trigger to half opacity, and the host drops the error while the field is disabled.
- Disabled and hover: disabled wins. Nothing changes under the pointer, and the cursor turns to not-allowed.
- Open and focus-visible: open wins. Focus moves to an option and the trigger carries `aria-expanded="true"`; its fill stays `--input` at 50 percent, as a field's does (D40), and the list below it is the anchor.
- Open and invalid: both show. The wash stays on the trigger under the list.
- Open and hover: Not applicable: the trigger has no hover look, and an open list only highlights the option under the pointer.
- Highlighted and selected option: both show. The highlighted option takes the grey fill and the selected one keeps its accent check, so only one option is ever filled.
- Disabled and highlighted option: disabled wins. Pointer events are off and the arrow keys skip it.
- Overflow and open: both show. The arrows appear only while the list has more to scroll in that direction.
- Empty and filled: Not applicable: a select is one or the other.

### Motion
| Trigger | Kind | Preset | Properties | Reduced motion |
|---|---|---|---|---|
| closed to open with `alignItemWithTrigger` on (opt-in) | announce | `instant`: `transition-none` while aligned, the list appears with the selected option over the trigger's text | none | the same |
| closed to open (the default, below the trigger) | announce | `popup-motion`, `--t-pop` on `--curve`, a fade in place below the trigger | opacity | opacity only; the fade stays under reduce |
| open to closed (the default) | announce | `popup-motion` at 70 percent of `--t-pop`, the same fade back, whatever closed it | opacity | opacity only |
| closed to open below 640px | announce | the sheet rises from the bottom edge on `--t-sheet` and `--curve-sheet` over the scrim, and leaves on `--t-leave`, a Sheet's motion; a swipe it follows, and a release past 30 percent leaves from where the finger let go | translate, transform | a fade on `--t-fade` |
| valid to invalid and back, and the fade to disabled | announce | `--t-fade` on `--curve` | color, background-color | the same colour change |

The aligned pattern is opt-in. With `alignItemWithTrigger` the list grows from nowhere because it does not animate, and it covers the trigger: measured the list's top 259px above the trigger's bottom on a mouse open and 49px above on a keyboard open at 390x844 while it was the default (.design-system/evidence/select/grow-count-390.json, .design-system/evidence/select/states-390.json). Person D8 asks a picker to open below its trigger with a 4px offset, and the default now does: measured 4px between the trigger's bottom and the list's top (.design-system/evidence/select/after-fix-light-390.json). The choice is gate G-10.

## Props

<!-- Props generated from registry/cobalt/ui/select.tsx with TypeScript by scripts/props-table.mjs -->
### Select

| Prop | Type | Default | Purpose |
|---|---|---|---|
| `phone?` | `"popover" \| "sheet"` | `"sheet"` | Below 640px: "sheet", a sheet along the bottom (the default), or "popover", the anchored list. |

Also accepts from Base UI: `actionsRef`, `autoComplete`, `defaultOpen`, `defaultValue`, `disabled`, `form`, `highlightItemOnHover`, `id`, `inputRef`, `isItemEqualToValue`, `itemToStringLabel`, `itemToStringValue`, `items`, `modal`, `multiple`, `name`, `onOpenChange`, `onOpenChangeComplete`, `onValueChange`, `open`, `readOnly`, `required`, `value`.

### SelectContent

No props of its own.

Also accepts every native `<div>` attribute; from Base UI: `align`, `alignItemWithTrigger`, `alignOffset`, `collisionPadding`, `finalFocus`, `render`, `side`, `sideOffset`.

### SelectGroup

No props of its own.

Also accepts every native `<div>` attribute; from Base UI: `render`.

### SelectItem

No props of its own.

Also accepts every native `<div>` attribute; from Base UI: `disabled`, `label`, `nativeButton`, `render`, `value`.

### SelectTrigger

| Prop | Type | Default | Purpose |
|---|---|---|---|
| `size?` | `"default" \| "sm"` | `"default"` | `default` `--control` tall; `sm` `--control-sm` tall. |

Also accepts every native `<button>` attribute; from Base UI: `disabled`, `nativeButton`, `render`.

### SelectValue

No props of its own.

Also accepts every native `<span>` attribute; from Base UI: `placeholder`, `render`.

`Select` takes `phone`: `sheet` (the default) opens the list below 640px as a sheet along the bottom of the screen, full width over the scrim with the grabber, 44px options and the page held still, and a swipe down closes it with no choice (D8); `popover` keeps it anchored below the trigger. `Select` is Base UI's root: `items` (the value to label map `SelectValue` reads), `value` and `onValueChange`, `defaultValue`, `open` and `onOpenChange`, `defaultOpen`, `name`, `disabled`, `required`. `SelectTrigger` takes `size` and every native button attribute, including `aria-invalid` and `aria-describedby`, which a surrounding `Field` sets on its own. `SelectValue` takes `placeholder`. `SelectContent` takes the popup's attributes and the placement `side` (bottom), `sideOffset` (4), `align` (start), `alignOffset` (0) and `alignItemWithTrigger` (true). `SelectItem` takes `value` and `disabled`. `className` on each part is merged last and is for placement, such as `w-48` or `w-full` on the trigger.

## Usage

### When to use
- You pick one of 5 to 10 known options, such as a role, a city or a time zone.
- The options are nouns that need no typing to find, and the pick goes into a form.

### When not to use
- 2 to 4 options that fit in one row. Use SegmentedControl instead.
- The choice is on or off. Use Switch instead, or Checkbox inside a form.
- You may pick several. Use a column of Checkbox rows instead.
- The options are actions, not a value. Use DropdownMenu instead.
- More than 10 options, or options you find by typing. Use Combobox instead.

### Rules
- Follows `rule/input-has-a-label`.
- Follows `rule/input-error-is-linked`.
- `rule/select-items-prop`: When a Select renders, pass `items` to the root as `{ value, label }` pairs or a value-to-label map, instead of the option children alone, because `SelectValue` reads the label of the current value from `items`, and without it the trigger shows the raw value until the list has mounted once. Evidence: app 2/2 Selects in the examples pass `items` (`docs/system/examples/select/default.tsx:16`, `docs/system/examples/select/size-sm.tsx:10`); principle platform: Base UI renders the value's label from `items`. Check: test `select.test.tsx` "a value shows its label"; review.
  - Don't: `<Select defaultValue="oslo"><SelectTrigger><SelectValue /></SelectTrigger><SelectContent><SelectItem value="oslo">Oslo</SelectItem></SelectContent></Select>`
  - Do: `<Select defaultValue="oslo" items={[{ value: "oslo", label: "Oslo" }]}><SelectTrigger><SelectValue /></SelectTrigger><SelectContent><SelectItem value="oslo">Oslo</SelectItem></SelectContent></Select>`
- `rule/select-placeholder-when-empty`: When a Select may have no value, give `SelectValue` a `placeholder` and leave the value unset, and in an optional field add a first `SelectItem` with `value={null}` labelled "None", instead of preselecting the first option, because a preselected option is an answer the person never gave, and an optional field needs a way back to none. Evidence: app 2/2 Selects without a value in the examples carry a placeholder (`docs/system/examples/select/default.tsx:18`, `docs/system/examples/select/state-invalid.tsx:21`); principle heuristic: error prevention, no silent default in a form. Check: test `select.test.tsx` "empty shows the placeholder and says so"; review.
  - Don't: `<Select defaultValue={cities[0].value} items={cities}>`
  - Do: `<Select items={cities}><SelectTrigger><SelectValue placeholder="Choose a city" /></SelectTrigger>`
- `rule/select-value-survives-reload`: When the options reload or the form fails, keep the Select's value in state the reload does not reset, as `value` with `onValueChange` on the root, instead of remounting the Select with a `key` or resetting the form, because a value missing from the current `items` renders as empty and the person's pick is lost. Evidence: person D1, the controlled pair is `value` and `onValueChange`; principle heuristic: user control and freedom, a pick is undone by the person, never by a refetch. Check: review of every Select whose options come from a request.
  - Don't: `<Select items={items} key={items.length} defaultValue={city}>`
  - Do: `<Select items={items} value={city} onValueChange={setCity}>`
- `rule/select-trigger-width`: When a Select sits in a form column, give the trigger `className="w-full"`; in a toolbar give it a width that fits the longest option, such as `w-48`, instead of the default `w-fit`, because a `w-fit` trigger changes width with every pick and shifts the controls beside it. Evidence: app 2/2 triggers in the examples set a width (`docs/system/examples/select/default.tsx:17`, `docs/system/examples/select/size-sm.tsx:11`); principle heuristic: consistency and standards, a control keeps its box across its values. Check: review of every `SelectTrigger`.
  - Don't: `<SelectTrigger><SelectValue placeholder="Choose a city" /></SelectTrigger>`
  - Do: `<SelectTrigger className="w-48"><SelectValue placeholder="Choose a city" /></SelectTrigger>`

- `rule/select-empty-is-disabled`: When `items` holds 0 options, disable the trigger and say why in its placeholder or the field's description, instead of a trigger that opens an empty popup, because the empty list opens as a 16px sliver with nothing in it. Evidence: measured the popup at 144 by 16px with 0 options on the stress page, `docs/research/2026-10-16-break-ui-inputs.md`. Check: probe the stress page `/stress/select?data=empty`; review of every Select whose `items` can be empty.
  - Don't: `<Select items={[]}><SelectTrigger><SelectValue placeholder="Choose a city" /></SelectTrigger></Select>`
  - Do: `<Select items={cities}><SelectTrigger disabled={cities.length === 0}><SelectValue placeholder={cities.length === 0 ? "No cities yet" : "Choose a city"} /></SelectTrigger></Select>`

### Content
- Follows `rule/writing-field-label-noun`.
- Follows `rule/writing-placeholder-not-label`.
- `rule/select-placeholder-choose-a-noun`: When `SelectValue` has a placeholder, it reads "Choose a {noun}", such as "Choose a city", instead of "Select...", "Pick one" or the label repeated, because the placeholder is the trigger's visible text and says what pressing it does. Evidence: app 2/2 placeholders in the examples read "Choose a {noun}" (`docs/system/examples/select/default.tsx:18`, `docs/system/examples/select/state-invalid.tsx:21`); principle heuristic: match between system and the real world, the verb names the act. Check: review of every `placeholder` on a `SelectValue`.
  - Don't: `<SelectValue placeholder="Select..." />`
  - Do: `<SelectValue placeholder="Choose a city" />`

### Anti-slop
- `rule/select-no-chevron-of-your-own`: When composing a `SelectTrigger`, pass only `SelectValue` as its child and no `ChevronDownIcon`, because the trigger draws the chevron itself (`registry/cobalt/ui/select.tsx:87-89`) and a second one doubles it. Evidence: app 7/7 triggers in the examples pass only `SelectValue` (`docs/system/examples/select/default.tsx:17-19`, `docs/system/examples/select/size-sm.tsx:11-13`); principle heuristic: aesthetic and minimalist design, one glyph for one affordance. Check: review of every `SelectTrigger`.
  - Don't: `<SelectTrigger><SelectValue /><ChevronDownIcon className="size-4" /></SelectTrigger>`
  - Do: `<SelectTrigger><SelectValue /></SelectTrigger>`
- `rule/select-not-a-styled-native-select`: When a form needs a pick from a list, use `Select` instead of a `<select>` styled through `className`, because the native popup renders in the operating system outside the system's tokens, cannot carry the check mark or the grey fill, and gives no `items` label for the trigger. Evidence: app 0/2 picks in the examples use a native `select`; principle platform: the native `select` popup is drawn by the OS and takes no styling. Check: lint rule/outside-name on a `select` element (scripts/check-system.mjs); review.
  - Don't: `<select className="min-h-(--control) rounded-lg bg-input/50 px-3 text-sm"><option>Oslo</option></select>`
  - Do: `<Select items={cities}><SelectTrigger className="w-48"><SelectValue placeholder="Choose a city" /></SelectTrigger><SelectContent>{cities.map((c) => <SelectItem key={c.value} value={c.value}>{c.label}</SelectItem>)}</SelectContent></Select>`

### Limits
- `rule/select-max-options`: When a choice has more than 10 options, use Combobox, a field that filters its list as you type, instead of a Select, because at 390x844 with the trigger mid-screen the list holds 10 options (413px available, 38px each) and the rest sit behind a scroll arrow, where typing reaches an option faster than scrolling. Evidence: measured 10 of 24 options in view at 390x844 in a Select, .design-system/tmp/fix-overlays/select-count-390.json; principle input: keyboard, typing a prefix jumps straight to an option the list hides. Check: review, with the option count in the PR; probe .design-system/scripts/grow-inputs.mjs.
  - Don't: `<Select items={zones}>` with 24 time zones
  - Do: `<Combobox items={zones}>` with the zones as `ComboboxItem` rows
- `rule/select-value-length`: When the longest option label runs past 20 characters, give the trigger `className="w-56"` or `w-full` instead of `w-48`, because `SelectValue` truncates with an ellipsis at 21 characters in a 192px trigger, which leaves 144px for the text. Evidence: measured truncation at 21 characters, .design-system/evidence/select/states-390.json. Check: probe .design-system/scripts/grow-inputs.mjs.
  - Don't: `<SelectTrigger className="w-48"><SelectValue /></SelectTrigger>` with the option "America/Argentina/Buenos Aires"
  - Do: `<SelectTrigger className="w-full"><SelectValue /></SelectTrigger>`

## Accessibility
Rests on Base UI `Select`: a `<button role="combobox">` trigger, a `listbox` of `option` items, and a hidden input for the form. Focus moves into the list on open and returns to the trigger on close (measured, .design-system/evidence/select/states-390.json).

### Keyboard
| Key | Where focus is | Effect | Focus after | Checked by |
|---|---|---|---|---|
| Tab | before the trigger | focuses the trigger; no outline is drawn, logged | the trigger | by hand |
| Enter, Space, ArrowDown or ArrowUp | the trigger, closed | opens the list | the selected option, or the first | by hand |
| ArrowDown or ArrowUp | an option | moves to the next or previous enabled option | that option | by hand |
| Home or End | an option | moves to the first or last option | that option | by hand |
| letters | the trigger or an option | jumps to the first option starting with them | that option, picked at once on a closed trigger | by hand |
| Enter or Space | an option | picks it and closes the list | the trigger | by hand |
| Escape | an option | closes the list without changing the value | the trigger | by hand |

Tab while the list is open: NOT SUPPLIED: not checked in this run; the list is modal by default.

### ARIA
| Part | Role | Accessible name from | States and properties | Announced | Checked by |
|---|---|---|---|---|---|
| trigger | combobox, on a `<button type="button">` | the `FieldLabel` of the surrounding `Field`, a `Label` through `htmlFor` to its `id`, or `aria-label` | `aria-haspopup="listbox"`, `aria-expanded`, `disabled`, `aria-invalid`, `aria-describedby` | the name, "combo box", the value or the placeholder, collapsed or expanded | a11y scan |
| list | listbox, inside a `presentation` popup | the trigger, wired by Base UI | the options | the number of options on open | by hand |
| option | option | its text | `aria-selected`, `aria-disabled` | the text, "selected" on the current one, and its position | by hand |
| hidden input | none, `aria-hidden` | none | `name` and the value, `tabindex="-1"` | nothing; it exists for the form | a11y scan |

Contrast, measured on the showcase at 390px (.design-system/evidence/select/states-390.json): the placeholder 5.6:1 light and 7.66:1 dark, and the value 18.47:1 light and 18.97:1 dark, both read over the page since the value span has no fill of its own; the option text on the grey fill 15.42:1 (measured before options moved to weight 400; the colours are unchanged); the disabled value 3.68:1 light and 5.15:1 dark, exempt as a disabled control (WCAG 1.4.3).

## Tokens
| Part | State | Token |
|---|---|---|
| trigger | all | `--control`, `--r-lg`, `--input` at 50 percent, `--foreground`, `--t-fade` |
| trigger | size=sm | `--control-sm` |
| trigger, chevron | empty | `--muted-foreground` |
| trigger | invalid | `--destructive` at 10 percent |
| trigger | disabled | opacity 50 percent |
| list | open | `--popover`, `--popover-foreground`, `--r-3xl`, `--shadow-floating`, `--t-pop`, `--curve`, `--available-height` and `--anchor-width` from Base UI |
| option | rest | `--popover-foreground`, `--r-lg`, 38px tall, weight 400 |
| option | highlighted | `--accent`, `--accent-foreground` |
| option | selected | `--primary-ink` on the check, no fill |
| scroll arrows | overflow | `--popover` |

The default trigger measures 36px tall and the small one 32px (.design-system/evidence/select/after-fix-light-390.json), level with the Input and Button beside it (`trap/control-height`). At the first measurement `py-2` plus the 20px line stood 2px past the `min-h` tokens, 38px and 34px (.design-system/evidence/select/states-390.json, .design-system/evidence/select/grow-count-390.json); the padding is now `py-1.5` and `py-1`.

## Related
- SegmentedControl: 2 to 4 options in one row.
- Field: the Select with its label and error wired.
- DropdownMenu: a list of actions, not a value.
- Combobox: one pick from a long or searchable list, past 10 options.
- Input: free text, where any text is a valid answer.
- Checkbox: one choice that is on or off, or stands for a set that is partly on.
- ChipRow: narrows a list to one of any number of choices.
- DataTable: lists records with the same fields, as many as a server holds.
- Tabs: switches between views of one thing in place.
- Textarea: takes text that runs past one line, such as notes or an agenda, and grows with it.
- RadioGroup: one choice among up to 6, all in view at once.
- NumberField: a count or an amount with a minus and a plus inside the field.
- Flag: a country, by its flag beside its name.
- InlineEdit: a value edited where it is read, saved on Enter or when the field is left.
