Select
Displays an animated list of options for the user to choose from —smoothly triggered by a button.
Loading...
Installation
npx shadcn@latest add @scrollxui/select Usage
import {
Select,
SelectContent,
SelectGroup,
SelectItem,
SelectTrigger,
SelectValue,
} from "@/components/ui/select"<Select>
<SelectTrigger className="w-[180px]">
<SelectValue placeholder="Theme" />
</SelectTrigger>
<SelectContent>
<SelectGroup>
<SelectItem value="light">Light</SelectItem>
<SelectItem value="dark">Dark</SelectItem>
<SelectItem value="system">System</SelectItem>
</SelectGroup>
</SelectContent>
</Select>API Reference
Select
Displays an animated list of options for the user to choose from —smoothly triggered by a button.