Dropdown
A customizable dropdown/select component with search functionality, icons, and keyboard navigation support
Basic Dropdown
With Icons
Searchable Dropdown
Pre-selected Value
With Disabled Items
Disabled Dropdown
Form Example
Dropdown Component
tsx
1import React, { useState, useRef, useEffect } from "react";2import { ChevronDown, Check } from "lucide-react";3import { cn } from "@/lib/cn";45interface DropdownItem {6 id: string | number;7 label: string;8 value: string | number;9 disabled?: boolean;10 icon?: React.ReactNode;