Back to Components
Inputs

Select

Dropdown select component with accessible keyboard navigation.

PropsUsage ExampleVariations

Dependencies

  • clsx
  • tailwind-merge
  • @radix-ui/react-select

Files

  • components/ui/select.tsx

Installation

Using shadcn CLI

npx shadcn add select --url https://ui.hampton.io

Manual installation

Copy the component file to your project and install dependencies:

npm install clsx tailwind-merge @radix-ui/react-select

Related Inputs Components