{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "select", "type": "registry:ui", "title": "Select", "description": "A select component.", "dependencies": ["@radix-ui/react-select"], "files": [ { "path": "registry/niv/ui/select.tsx", "content": "'use client';\n\nimport {\n Content,\n Group,\n Icon,\n Item,\n ItemIndicator,\n ItemText,\n Label,\n Portal,\n Root,\n ScrollDownButton,\n ScrollUpButton,\n Separator,\n Trigger,\n Value,\n Viewport,\n} from '@radix-ui/react-select';\nimport { CheckIcon, ChevronDownIcon, ChevronUpIcon } from 'lucide-react';\nimport { cn } from '@/lib/classnames';\nimport type { ComponentProps } from 'react';\n\nfunction SelectRoot({ ...props }: ComponentProps) {\n return ;\n}\n\nfunction SelectGroup({ ...props }: ComponentProps) {\n return ;\n}\n\nfunction SelectValue({ ...props }: ComponentProps) {\n return ;\n}\n\nfunction SelectTrigger({\n className,\n size = 'default',\n children,\n ...props\n}: ComponentProps & {\n size?: 'sm' | 'default';\n}) {\n return (\n \n {children}\n \n \n \n \n );\n}\n\nfunction SelectContent({\n className,\n children,\n position = 'popper',\n align = 'center',\n ...props\n}: ComponentProps) {\n return (\n \n \n \n \n {children}\n \n \n \n \n );\n}\n\nfunction SelectLabel({ className, ...props }: ComponentProps) {\n return (\n \n );\n}\n\nfunction SelectItem({\n className,\n children,\n ...props\n}: ComponentProps) {\n return (\n \n \n \n \n \n \n {children}\n \n );\n}\n\nfunction SelectSeparator({\n className,\n ...props\n}: ComponentProps) {\n return (\n \n );\n}\n\nfunction SelectScrollUpButton({\n className,\n ...props\n}: ComponentProps) {\n return (\n \n \n \n );\n}\n\nfunction SelectScrollDownButton({\n className,\n ...props\n}: ComponentProps) {\n return (\n \n \n \n );\n}\n\nconst Select = Object.assign(SelectRoot, {\n Content: SelectContent,\n Group: SelectGroup,\n Item: SelectItem,\n Label: SelectLabel,\n ScrollDownButton: SelectScrollDownButton,\n ScrollUpButton: SelectScrollUpButton,\n Separator: SelectSeparator,\n Trigger: SelectTrigger,\n Value: SelectValue,\n});\n\nexport { Select };\n", "type": "registry:ui" } ] }