{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "drawer", "type": "registry:ui", "title": "Drawer", "description": "A drawer component.", "dependencies": ["vaul"], "files": [ { "path": "registry/niv/ui/drawer.tsx", "content": "'use client';\n\nimport { Drawer as DrawerPrimitive } from 'vaul';\nimport { cn } from '@/lib/classnames';\nimport type { ComponentProps } from 'react';\n\nfunction DrawerRoot({ ...props }: ComponentProps) {\n return ;\n}\n\nfunction DrawerTrigger({\n ...props\n}: ComponentProps) {\n return ;\n}\n\nfunction DrawerPortal({\n ...props\n}: ComponentProps) {\n return ;\n}\n\nfunction DrawerClose({\n ...props\n}: ComponentProps) {\n return ;\n}\n\nfunction DrawerOverlay({\n className,\n ...props\n}: ComponentProps) {\n return (\n \n );\n}\n\nfunction DrawerContent({\n className,\n children,\n ...props\n}: ComponentProps) {\n return (\n \n \n \n
\n {children}\n \n \n );\n}\n\nfunction DrawerHeader({ className, ...props }: ComponentProps<'div'>) {\n return (\n \n );\n}\n\nfunction DrawerFooter({ className, ...props }: ComponentProps<'div'>) {\n return (\n \n );\n}\n\nfunction DrawerTitle({\n className,\n ...props\n}: ComponentProps) {\n return (\n \n );\n}\n\nfunction DrawerDescription({\n className,\n ...props\n}: ComponentProps) {\n return (\n \n );\n}\n\nconst Drawer = Object.assign(DrawerRoot, {\n Portal: DrawerPortal,\n Overlay: DrawerOverlay,\n Trigger: DrawerTrigger,\n Close: DrawerClose,\n Content: DrawerContent,\n Header: DrawerHeader,\n Footer: DrawerFooter,\n Title: DrawerTitle,\n Description: DrawerDescription,\n});\n\nexport { Drawer };\n", "type": "registry:ui" } ] }