Select
selectA choice from a list too long for radio buttons. Grouped with labels, an inline check on the selected option, typeahead and arrow-key navigation from the Base UI select primitive, and a label in the trigger that rolls in the direction of the list — down for a later option, up for an earlier one.
"use client";
import { useState } from "react";
import {
Select,
SelectContent,
SelectField,
SelectGroup,
SelectItem,
SelectLabel,
SelectTrigger,
SelectValue,
} from "@/components/forme/select/select";
const PLANS = [
{ value: "monthly", label: "Pay monthly — $14" },
{ value: "yearly", label: "Pay yearly — $129" },
{ value: "lifetime", label: "Pay once — $199" },
];
const REGIONS = [
{ value: "eu", label: "Frankfurt" },
{ value: "uk", label: "London" },
{ value: "us-east", label: "Virginia" },
{ value: "us-west", label: "Oregon" },
];
export function SelectDemo() {
const [plan, setPlan] = useState("yearly");
return (
<div className="flex w-full max-w-xs flex-col gap-6">
{/* `items` is what the trigger reads to roll the label in the list's
direction: picking something lower rises from below. The field carries
the label and the help text, so the control sits in a form like any
input does. */}
<SelectField label="Billing plan" description="Change at any time.">
<Select items={PLANS} value={plan} onValueChange={(next) => setPlan(String(next))}>
<SelectTrigger>
<SelectValue />
</SelectTrigger>
<SelectContent>
{PLANS.map((option) => (
<SelectItem key={option.value} value={option.value}>
{option.label}
</SelectItem>
))}
</SelectContent>
</Select>
</SelectField>
<SelectField label="Region">
<Select items={REGIONS} defaultValue="eu">
<SelectTrigger>
<SelectValue placeholder="Choose a region" />
</SelectTrigger>
<SelectContent>
<SelectGroup>
<SelectLabel>Europe</SelectLabel>
<SelectItem value="eu">Frankfurt</SelectItem>
<SelectItem value="uk">London</SelectItem>
</SelectGroup>
<SelectGroup>
<SelectLabel>Americas</SelectLabel>
<SelectItem value="us-east">Virginia</SelectItem>
<SelectItem value="us-west">Oregon</SelectItem>
</SelectGroup>
</SelectContent>
</Select>
</SelectField>
{/* A toolbar control: no room for a label, so the trigger names itself. */}
<Select disabled items={REGIONS} defaultValue="eu">
<SelectTrigger aria-label="Region, disabled">
<SelectValue />
</SelectTrigger>
<SelectContent>
<SelectItem value="eu">Frankfurt</SelectItem>
</SelectContent>
</Select>
</div>
);
}Install
Adds the component, its registry dependencies, and the token stylesheet you import once.
Usage
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/forme/select/select";
<Select items={regions} defaultValue="eu">
<SelectTrigger aria-label="Region">
<SelectValue />
</SelectTrigger>
<SelectContent>
<SelectItem value="eu">Europe</SelectItem>
<SelectItem value="us">United States</SelectItem>
</SelectContent>
</Select>When to use
Reach for it
- Picking one value from a list too long for radio buttons, such as a region, a timezone or a role.
- Pass
itemswhen the options are known up front: it is what lets the trigger roll the new label in the direction you moved.
Use something else
- Two to five options that should all be visible; use a
RadioGroupor aSegmentedControl. - Choosing several values; that is a
MultiSelect. - Running actions — a list of actions is a
Dropdown.
API reference
Read from the source, so it is the API of the file you install. A prop marked * is required.
Select
The select and the root of it.
| Prop | Type | Default | Description |
|---|---|---|---|
items | readonly SelectItemDescription[] | — | Data structure of the items rendered in the select popup. When specified, <Select.Value> renders the label of the selected item instead of the raw value. |
Also takes every prop of Base UI Select.Root.
SelectTrigger
| Prop | Type | Default | Description |
|---|---|---|---|
asChild | boolean | — | Render as the single child element instead of a <button>, keeping the trigger behaviour. |
Also takes every prop of Base UI Select.Trigger.
SelectItem
| Prop | Type | Default | Description |
|---|---|---|---|
destructive | boolean | — | Renders destructive: for an option the reader should think twice about. |
Also takes every prop of Base UI Select.Item.
SelectField
The field wrapper: a label, the select, and a description.
| Prop | Type | Default | Description |
|---|---|---|---|
label | React.ReactNode | — | The visible label. Names the trigger for a screen reader. |
description | React.ReactNode | — | Help text under the field, announced as the description. |
Also takes every prop of <div> attributes.
The other parts
SelectValueTakes Base UISelect.ValueSelectContentTakes Base UISelect.PopupandPick<ComponentProps<typeof SelectPrimitive.Positioner>, "side" | "sideOffset" | "align">SelectLabelTakes Base UISelect.GroupLabelSelectGroupTakes Base UISelect.Group
Accessibility
- Base UI gives it the listbox pattern: typeahead, arrow keys, Home and End, and Esc to close.
- The rolling label is
aria-hidden; a separate visually hidden copy holds the value, so a screen reader hears one label rather than the outgoing and incoming one together.
Motion
- The label rolls in the direction of the list — a later option rises from below, an earlier one drops from above — so the motion says which way you moved.
- Both the value roll and the popup animate on the shared tokens, and the popup exits faster than it enters.
- Reduced motion keeps a short crossfade and drops the movement and blur.
Related
Combobox
A text field that filters a list as you type, with one value chosen from the results. Composable parts, so the field can hold a plain value, an object with a label, or several of either. Filtering, keyboard navigation and the active option being announced all come from Base UI.
forms

Checkbox
A single choice with a visible label wired to it for a screen reader. An indeterminate state for a select-all with only some rows picked, a description read as a description rather than folded into the name, a destructive variant, and a mark that draws itself in.
forms

Radio group
A choice of exactly one option. The selected dot travels between options on a spring, each option carries its own label and optional description, and arrow keys move the selection in the direction the options are laid out.
forms