Simulates prefers-reduced-motion for the demo. Off follows your system setting.
Steps focus through the demo with ] and [. Tab, arrows, and Escape stay native so the component behaves as shipped.
1
A select whose field grows open into its own list.
npx shadcn@latest add ikislay/pixel-ui/selectimport { Select } from "@/components/ui/select"export function Demo() {return (<Selectaria-label="Theme"options={[{ value: "light", label: "Light" },{ value: "dark", label: "Dark" },{ value: "system", label: "System" },]}/>)}
1// Loading…
Options you can pass to customize this component.
options*{ value: string; label: ReactNode; disabled?: boolean }[]The choices, in order.
valuestringControls the picked value. Leave it unset to let the select manage itself.
defaultValuestringThe starting pick when uncontrolled.
onValueChange(value: string) => voidCalled with the newly picked value.
placeholderReactNodeShown while nothing is picked.
onFeedback(event: "open" | "close" | "select") => voidCalled at each semantic moment, for wiring sound or haptics.
classNamestringMerged onto the root element.