Todos os componentes

Select 03

Select 03 é um componente de formulário para React e Tailwind CSS, da biblioteca Bund UI, com licença MIT. Copia e cola no teu projeto.

Bund UI MIT forms

O que é

Select 03 é um componente de formulário para React e Tailwind CSS, da biblioteca Bund UI, com licença MIT. Copia e cola no teu projeto.

Como usar

Abre o componente no catálogo, carrega em copiar, e cola no teu projeto. O prompt copiado leva o código e as regras para o teu agente o reproduzir sem alterar nada.

Abrir no catálogo

Cinco cópias grátis por mês. Sem cartão.

Não precisa de pacotes além do que o projeto já tem

Licença

Este componente vem de Bund UI e é redistribuído sob a licença MIT, que permite uso comercial. O aviso de copyright viaja com o código.

Select 03

examples/components/select/03/page.tsx
import {
  Select,
  SelectContent,
  SelectItem,
  SelectTrigger,
  SelectValue
} from "@/components/ui/select";

export default function SelectDemo() {
  return (
    <Select defaultValue="3">
      <SelectTrigger className="w-[200px]">
        <SelectValue placeholder="Select framework" />
      </SelectTrigger>
      <SelectContent>
        <SelectItem value="1">
          <span className="flex items-center gap-2">
            <span className="size-1.5 rounded-full bg-violet-500"></span>
            <span>In Progress</span>
          </span>
        </SelectItem>
        <SelectItem value="2">
          <span className="flex items-center gap-2">
            <span className="size-1.5 rounded-full bg-green-500"></span>
            <span>Completed</span>
          </span>
        </SelectItem>
        <SelectItem value="3">
          <span className="flex items-center gap-2">
            <span className="bg-primary size-1.5 rounded-full"></span>
            <span>Pending</span>
          </span>
        </SelectItem>
        <SelectItem value="4">
          <span className="flex items-center gap-2">
            <span className="size-1.5 rounded-full bg-yellow-500"></span>
            <span>Cancelled</span>
          </span>
        </SelectItem>
        <SelectItem value="5">
          <span className="flex items-center gap-2">
            <span className="bg-destructive size-1.5 rounded-full"></span>
            <span>Rejected</span>
          </span>
        </SelectItem>
      </SelectContent>
    </Select>
  );
}

Componentes parecidos