GitHub

Select

Displays a list of options for the user to pick from

Installation

pnpm dlx shadcn@latest add https://shark-ui.vercel.app/r/select.json

Usage

import { 
  Select,
  SelectTrigger,
  SelectValue,
} from "@/components/ui/select";
  <Select>
    <SelectTrigger>
      <SelectValueText placeholder="Select an option" />
    </SelectTrigger>
    <SelectContent>
      <SelectItem value="1">Option 1</SelectItem>
    </SelectContent>
  </Select>