Imagine ArtImagine Art

A dropdown control that lets users pick one option from a predefined list.

Forms

Import

import { Select } from "@/components/ui"

API

PropTypeDefaultDescription
optionsSelectOption[]Array of { value, label, disabled? } objects.
valuestringControlled selected value.
onValueChange(value: string) => voidCallback when selection changes.
placeholderstring"Select..."Placeholder text when no value is selected.
size"sm" | "md" | "lg""md"Controls height and font size.
labelstringLabel text above the select.
errorstringError message below the select.

Examples