Select
Dropdown select component with accessible keyboard navigation.
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.ioManual installation
Copy the component file to your project and install dependencies:
npm install clsx tailwind-merge @radix-ui/react-selectRelated Inputs Components
Address Input
Multi-field address form for street, city, region, postal code, and country.
Autocomplete Address
Address input with suggestions and structured output for street, city, state, and postal code.
Avatar Upload
Circular avatar with upload overlay, drag and drop support, and image preview.
Character Counter
Textarea with live character count, limit enforcement, and warning states.
Checkbox
A styled checkbox component with 8 style presets including modern, glassmorphism, neumorphism, brutalist, retro-mac, windows-95, flat, and skeuomorphic.
Checkbox Group
Checkbox list with optional select all toggle and indeterminate support.