Select

Select dropdown on Base UI with a trigger in three sizes, an animated popup, groups, labels, separators, a check indicator and scroll arrows. Shadcn-compatible.

src/registry/ui/select.tsx/r/select.json

Basic

Installation#

bash
npx shadcn@latest add @minidev/select

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/select.json

Usage#

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

export function Example() {
  return (
    <Select disabled={disabled} {...props}>
      <SelectTrigger id={id} className="w-56" aria-label={label}>
        <SelectValue placeholder={placeholder} />
      </SelectTrigger>
      <SelectContent>
        <SelectItem value="a">Alpha</SelectItem>
        <SelectItem value="b">Beta</SelectItem>
        <SelectItem value="c">A very long option label for overflow</SelectItem>
      </SelectContent>
    </Select>
  )
}

API reference#

Select takes no props. It ships with realistic sample content: install it, then edit the copy and data in the file directly. The file is yours.

Dependencies#

npm

@base-ui/reactlucide-react

Built from

No other MiniDev files

Examples#

All form components

Learn more