Select
Picks one of up to 10 known options and sends it with the form.
Examples
Domicile
Fund assets and fees are shown in this currency.
Variants
Bookings
--control-sm tall, for a toolbar or a table row.States
Make someone else the owner before changing this role.
Choose a room for the meeting.
Usage
Use it when
- 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.
Use something else when
- 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
General
Content
Avoid
Limits
Install
npx shadcn@latest add https://kaanarici.com/r/cobalt/select.jsonimport { Select, SelectTrigger, SelectValue, SelectContent, SelectGroup, SelectItem } from "@/components/cobalt/ui/select"