About
A dropdown select control with a styled trigger and popup listbox for choosing one or multiple options from a list.
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,
SelectTrigger,
SelectValue,
SelectContent,
SelectItem,
} from "@/components/ui/select";
const fruits = [
"Apple",
"Banana",
"Blueberry",
"Grapes",
"Orange",
"Strawberry",
];
export default function SelectDemo() {
return (
<div className="w-full max-w-70">
<Select>
<SelectTrigger aria-label="Pick a fruit">
<SelectValue placeholder="Pick a fruit" />
</SelectTrigger>
<SelectContent>
{fruits.map((fruit) => (
<SelectItem key={fruit} value={fruit}>
{fruit}
</SelectItem>
))}
</SelectContent>
</Select>
</div>
);
}















