# Select

> A dropdown for choosing one option from a list.

_Updated: 2026-06-04_

A dropdown for choosing one option from a list.

## Installation

```bash
railbase ui add select
```

> [!NOTE]
> `railbase ui add` also copies shared primitives — they ship alongside this component automatically.

## Usage

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

<Select>
  <SelectTrigger><SelectValue placeholder="Pick one" /></SelectTrigger>
  <SelectContent>
    <SelectItem value="apple">Apple</SelectItem>
    <SelectItem value="pear">Pear</SelectItem>
  </SelectContent>
</Select>
```

## Anatomy

Exported parts: `Select` · `SelectTrigger` · `SelectValue` · `SelectContent` · `SelectItem` · `SelectSeparator` · `SelectLabel` · `SelectGroup` · `SelectScrollUpButton` · `SelectScrollDownButton`
