About
A dropdown select field with a styled trigger, popover listbox, label, description and validation error, built on React Aria Components for full keyboard and screen-reader accessibility.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Select to your project and fits it to your theme.
Code
How Select is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import { Select, SelectItem } from "@/components/ui/tailwind-select";
export default function SelectDemo() {
return (
<div className="flex w-full items-center justify-center p-10">
<Select label="Favorite animal" className="max-w-xs">
<SelectItem id="aardvark">Aardvark</SelectItem>
<SelectItem id="cat">Cat</SelectItem>
<SelectItem id="dog">Dog</SelectItem>
<SelectItem id="kangaroo">Kangaroo</SelectItem>
<SelectItem id="panda">Panda</SelectItem>
<SelectItem id="snake">Snake</SelectItem>
</Select>
</div>
);
}
















