{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "combobox", "type": "registry:ui", "dependencies": ["@ark-ui/react", "lucide-react"], "files": [ { "path": "./src/components/ui/combobox.tsx", "content": "\"use client\"\n\nimport * as React from \"react\"\n\nimport { Combobox as ComboboxPrimitive } from \"@ark-ui/react/combobox\"\nimport { Portal } from \"@ark-ui/react/portal\"\nimport { CheckIcon, ChevronsUpDownIcon } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst ComboboxComponent = React.forwardRef(\n (\n props: ComboboxPrimitive.RootProps,\n ref: React.Ref\n ) => \n)\nComboboxComponent.displayName = \"Combobox\"\nconst Combobox = ComboboxComponent as <\n T extends ComboboxPrimitive.CollectionItem,\n>(\n props: ComboboxPrimitive.RootProps &\n React.RefAttributes>\n) => React.JSX.Element\n\nconst ComboboxClearTrigger = React.forwardRef<\n React.ElementRef,\n ComboboxPrimitive.ClearTriggerProps\n>(({ className, ...props }, ref) => (\n \n))\nComboboxClearTrigger.displayName = \"ComboboxClearTrigger\"\n\nconst ComboboxContent = React.forwardRef<\n React.ElementRef,\n ComboboxPrimitive.ContentProps\n>(({ className, ...props }, ref) => (\n \n \n \n \n \n))\nComboboxContent.displayName = \"ComboboxContent\"\n\nconst ComboboxContext = ComboboxPrimitive.Context\n\nconst ComboboxControl = React.forwardRef<\n React.ElementRef,\n ComboboxPrimitive.ControlProps\n>(({ className, ...props }, ref) => (\n \n))\nComboboxControl.displayName = \"ComboboxControl\"\n\nconst ComboboxInput = React.forwardRef<\n React.ElementRef,\n ComboboxPrimitive.InputProps\n>(({ className, ...props }, ref) => (\n \n))\nComboboxInput.displayName = \"ComboboxInput\"\n\nconst ComboboxItem = React.forwardRef<\n React.ElementRef,\n ComboboxPrimitive.ItemProps\n>(({ className, children, ...props }, ref) => (\n \n \n \n \n \n \n {children}\n \n))\nComboboxItem.displayName = \"ComboboxItem\"\n\nconst ComboboxItemContext = ComboboxPrimitive.ItemContext\n\nconst ComboboxItemGroup = React.forwardRef<\n React.ElementRef,\n ComboboxPrimitive.ItemGroupProps\n>(({ className, ...props }, ref) => (\n \n))\nComboboxItemGroup.displayName = \"ComboboxItemGroup\"\n\nconst ComboboxItemGroupLabel = React.forwardRef<\n React.ElementRef,\n ComboboxPrimitive.ItemGroupLabelProps\n>(({ className, ...props }, ref) => (\n \n))\nComboboxItemGroupLabel.displayName = \"ComboboxItemGroupLabel\"\n\nconst ComboboxItemText = ComboboxPrimitive.ItemText\n\nconst ComboboxLabel = React.forwardRef<\n React.ElementRef,\n ComboboxPrimitive.LabelProps\n>(({ className, ...props }, ref) => (\n \n))\nComboboxLabel.displayName = \"ComboboxLabel\"\n\nconst ComboboxList = ComboboxPrimitive.List\n\nconst ComboboxTrigger = React.forwardRef<\n React.ElementRef,\n ComboboxPrimitive.TriggerProps\n>(({ className, ...props }, ref) => (\n \n \n \n))\nComboboxTrigger.displayName = \"ComboboxTrigger\"\n\nexport {\n Combobox,\n ComboboxClearTrigger,\n ComboboxContent,\n ComboboxContext,\n ComboboxControl,\n ComboboxInput,\n ComboboxItem,\n ComboboxItemContext,\n ComboboxItemGroup,\n ComboboxItemGroupLabel,\n ComboboxItemText,\n ComboboxLabel,\n ComboboxList,\n ComboboxTrigger,\n}\n\nexport {\n createListCollection,\n useCombobox,\n type CollectionItem,\n type ComboboxHighlightChangeDetails,\n type ComboboxInputValueChangeDetails,\n type ComboboxOpenChangeDetails,\n type ComboboxValueChangeDetails,\n type ListCollection,\n} from \"@ark-ui/react/combobox\"\n", "type": "registry:ui" } ] }