Select

Inputs & Controls

macOS translucent dropdown select with checkmarks.

Installation

$npx shadcn-macos@latest add select

Examples

Props

<Select />
PropTypeDefaultDescription
options*{ value: string; label: string; disabled?: boolean }[]List of options available in the select dropdown.
valuestringControlled selected option value.
defaultValuestringInitial selected value when uncontrolled.
onChange(value: string) => voidCallback invoked when a new option is picked.
placeholderstring"Select an option..."Placeholder text displayed when no value is selected.
disabledbooleanfalseWhether the select dropdown is disabled.
classNamestringCustom CSS classes.