extend-hq

Select

Forms 10

About

A select menu for choosing a single option from a list, built on Base UI.

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 { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";
export default function Default() {
  return (
    <div className="flex min-h-screen w-full items-center justify-center bg-background p-8">
      <div className="w-[360px] space-y-3">
        <label className="text-sm font-medium text-foreground">Choose a fruit</label>
        <Select>
          <SelectTrigger className="w-full" size="lg">
            <SelectValue placeholder="Pick one" />
          </SelectTrigger>
          <SelectContent>
            <SelectItem value="apple">Apple</SelectItem>
            <SelectItem value="banana">Banana</SelectItem>
            <SelectItem value="orange">Orange</SelectItem>
          </SelectContent>
        </Select>
      </div>
    </div>
  );
}

Dependencies

More by extend-hq

View all
  • PDF Viewer

    PDF Viewer

    458
  • File Upload

    File Upload

    354
  • Excel Viewer

    Excel Viewer

    330
  • File System (Finder)

    File System (Finder)

    160
  • CSV / TSV Viewer

    CSV / TSV Viewer

    83
  • File Upload

    File Upload

    72
  • Scroll Area

    Scroll Area

    14
  • Button

    Button

    12

More in Forms

View all
  • Form

    Form

    17
  • Premium Auth

    Premium Auth

    569
  • Login 1

    Login 1

    62
  • Book A Demo 1

    Book A Demo 1

    90
  • Contact Card

    Contact Card

    1.1K
  • Book A Demo 3

    Book A Demo 3

    101
  • Card Studio

    Card Studio

    46
  • Login Card

    Login Card

    33