Select
A dropdown select component for choosing from options.
Preview
Installation
bash
npx auralix-ui add selectUsage
Default Select
tsx
import { Select } from "@/components/ui/Select";
<Select
placeholder="Choose an option"
options={[
{ value: "1", label: "Option 1" },
{ value: "2", label: "Option 2" },
{ value: "3", label: "Option 3" },
]}
/>Select Sizes
tsx
<Select selectSize="sm" options={options} />
<Select selectSize="md" options={options} />
<Select selectSize="lg" options={options} />Props
| Name | Type | Default | Description |
|---|---|---|---|
options | SelectOption[] | [] | Array of options { value, label, disabled? }. |
selectSize | "sm" | "md" | "lg" | "md" | The size of the select. |
placeholder | string | - | Placeholder text when no option is selected. |
error | boolean | false | Whether the select has an error state. |
disabled | boolean | false | Whether the select is disabled. |
Variants
Standard
Minimal
Combobox
On this page