micka_design

Select

Forms 5

About

A fluid select dropdown with proximity hover, animated checkmark, grouped options, and spring transitions. Built with Framer Motion and portal rendering.

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

"use client";

import { useState } from "react";
import { Select, SelectTrigger, SelectContent, SelectItem, SelectGroup, SelectLabel, SelectSeparator } from "../components/ui/select";

export default function SelectGroupedDemo() {
  const [value, setValue] = useState("");

  return (
    <div className="flex items-center justify-center min-h-screen bg-background">
      <Select value={value} onValueChange={setValue}>
        <SelectTrigger placeholder="Select language…" />
        <SelectContent>
          <SelectGroup>
            <SelectLabel>Frontend</SelectLabel>
            <SelectItem index={0} value="typescript">TypeScript</SelectItem>
            <SelectItem index={1} value="javascript">JavaScript</SelectItem>
          </SelectGroup>
          <SelectSeparator />
          <SelectGroup>
            <SelectLabel>Backend</SelectLabel>
            <SelectItem index={2} value="python">Python</SelectItem>
            <SelectItem index={3} value="go">Go</SelectItem>
            <SelectItem index={4} value="rust">Rust</SelectItem>
          </SelectGroup>
        </SelectContent>
      </Select>
    </div>
  );
}

Dependencies

More by micka_design

View all
  • Switch

    Switch

    90
  • Checkbox Group

    Checkbox Group

    84
  • Segmented Tabs

    Segmented Tabs

    53
  • Table

    Table

    42
  • Accordion

    Accordion

    39
  • Tabs Subtle

    Tabs Subtle

    27
  • Slider

    Slider

    25
  • Badge

    Badge

    20

More in Forms

View all
  • Premium Auth

    Premium Auth

    575
  • Login 1

    Login 1

    67
  • Contact Card

    Contact Card

    1.1K
  • Contact Form

    Contact Form

    28
  • Login Card

    Login Card

    35
  • Form

    Form

    19
  • Login Card

    Login Card

    31
  • Form

    Form

    141