About
A dropdown select menu with a spring-animated popup, a shared gliding highlight that follows the hovered/active option, and an animated checkmark on the selected item.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Motion Select to your project and fits it to your theme.
Code
How Motion Select is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
import {
Select,
SelectContent,
SelectItem,
SelectTrigger,
SelectValue,
} from "@/components/ui/motion-select";
const fruits = [
{ value: "apple", label: "Apple" },
{ value: "banana", label: "Banana" },
{ value: "orange", label: "Orange" },
{ value: "grape", label: "Grape" },
{ value: "watermelon", label: "Watermelon" },
];
export default function MotionSelectDemo() {
return (
<div className="flex min-h-[400px] w-full items-center justify-center">
<Select items={fruits} defaultValue="apple">
<SelectTrigger className="w-48">
<SelectValue placeholder="Select a fruit" />
</SelectTrigger>
<SelectContent>
{fruits.map((fruit) => (
<SelectItem key={fruit.value} value={fruit.value}>
{fruit.label}
</SelectItem>
))}
</SelectContent>
</Select>
</div>
);
}
















