Select
Displays a list of options for the user to pick from—triggered by a button.
Import
import { Select } from '@chimera-ui/components'
Usage
<Select.Root>
<Select.Trigger className="w-[180px]">
<Select.Value placeholder="Select a fruit" />
</Select.Trigger>
<Select.Content>
<Select.Group>
<Select.Label>
Fruits
</Select.Label>
<Select.Item value="apple">
Apple
</Select.Item>
<Select.Item value="banana">
Banana
</Select.Item>
<Select.Item value="blueberry">
Blueberry
</Select.Item>
<Select.Item value="grapes">
Grapes
</Select.Item>
<Select.Item value="pineapple">
Pineapple
</Select.Item>
</Select.Group>
<Select.Separator />
<Select.Group>
<Select.Label>
Vegetables
</Select.Label>
<Select.Item value="aubergine">
Aubergine
</Select.Item>
<Select.Item value="broccoli">
Broccoli
</Select.Item>
<Select.Item
disabled
value="carrot"
>
<p>
Carrot
</p>
</Select.Item>
<Select.Item value="courgette">
Courgette
</Select.Item>
<Select.Item value="leek">
Leek
</Select.Item>
</Select.Group>
<Select.Separator />
<Select.Group>
<Select.Label>
Meat
</Select.Label>
<Select.Item value="beef">
Beef
</Select.Item>
<Select.Item value="chicken">
Chicken
</Select.Item>
<Select.Item value="lamb">
Lamb
</Select.Item>
<Select.Item value="pork">
Pork
</Select.Item>
</Select.Group>
</Select.Content>
</Select.Root>