{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "resizable",
"title": "Resizable",
"description": "Resizable panel groups with draggable handles, built on react-resizable-panels.",
"dependencies": [
"react-resizable-panels",
"clsx",
"tailwind-merge"
],
"registryDependencies": [
"https://ui.digital.nsw.gov.au/registry/r/theme.json"
],
"files": [
{
"path": "src/components/resizable.tsx",
"content": "'use client'\n\nimport * as ResizablePrimitive from 'react-resizable-panels'\n\nimport { cn } from '@/lib/utils'\n\nfunction ResizablePanelGroup({ className, ...props }: ResizablePrimitive.GroupProps) {\n return (\n \n )\n}\n\nfunction ResizablePanel({ ...props }: ResizablePrimitive.PanelProps) {\n return \n}\n\nfunction ResizableHandle({\n withHandle,\n className,\n ...props\n}: ResizablePrimitive.SeparatorProps & {\n withHandle?: boolean\n}) {\n return (\n div]:rotate-90',\n className,\n )}\n {...props}\n >\n {withHandle && }\n \n )\n}\n\nexport { ResizableHandle, ResizablePanel, ResizablePanelGroup }\n",
"type": "registry:ui",
"target": "components/resizable.tsx"
},
{
"path": "src/lib/utils.ts",
"content": "import { clsx, type ClassValue } from 'clsx'\nimport { twMerge } from 'tailwind-merge'\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs))\n}\n",
"type": "registry:lib",
"target": "lib/utils.ts"
}
],
"type": "registry:ui",
"meta": {
"nswdsVersion": "5.1.0"
}
}