Documentation
Components
Select

Select

Displays a list of options for the user to pick from—triggered by a button.

Installation

npx shadcn@latest add https://exawizards.com/exabase/design/registry/select.json

Usage

import {
  Select,
  SelectContent,
  SelectItem,
  SelectTrigger,
  SelectValue,
} from "@/components/ui/select"
<Select>
  <SelectTrigger className="w-[180px]">
    <SelectValue placeholder="Theme" />
  </SelectTrigger>
  <SelectContent>
    <SelectItem value="light">Light</SelectItem>
    <SelectItem value="dark">Dark</SelectItem>
    <SelectItem value="system">System</SelectItem>
  </SelectContent>
</Select>

API

See the Select – Radix Primitives (opens in a new tab) documentation.

Examples

Disabled

Scrollable

Form

You can manage email addresses in your email settings.