Preet Suthar

Select

Forms 43

About

A comprehensive select component with support for single selection, icons, and animations.

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 { User } from "lucide-react";

import { 
  Select,
  SelectContent,
  SelectItem,
  SelectTrigger,
  SelectValue
} from "@/components/ui/select";

export default function DemoOne() {
  return (
    <>
      <div className="font-medium">
        <Select>
          <SelectTrigger icon={User}>
            <SelectValue placeholder="Select a user" />
          </SelectTrigger>
          <SelectContent className="font-medium">
            <SelectItem value="john" icon={User}>
              John Doe
            </SelectItem>
            <SelectItem value="jane" icon={User}>
              Jane Smith
            </SelectItem>
            <SelectItem value="bob" icon={User}>
              Bob Johnson
            </SelectItem>
          </SelectContent>
        </Select>
      </div>
    </>
  );
}

Dependencies

More by Preet Suthar

View all
  • Modern & Stunning sign in

    Modern & Stunning sign in

    1.5K
  • Shining Text

    Shining Text

    1.5K
  • Magic Text

    Magic Text

    846
  • Hero 2

    Hero 2

    818
  • Toolbar

    Toolbar

    815
  • Typewriter Text

    Typewriter Text

    768
  • AI Chat Input

    AI Chat Input

    729
  • Full Screen Signup

    Full Screen Signup

    722

More in Forms

View all
  • Premium Auth

    Premium Auth

    492
  • Authentication Card

    Authentication Card

    44
  • Login 1

    Login 1

    52
  • Login 2

    Login 2

    7
  • Form

    Form

    15
  • Form

    Form

    31
  • Login Card

    Login Card

    32
  • Card Studio

    Card Studio

    41