{
"$schema": "https://ui.shadcn.com/schema/registry-item.json",
"name": "input",
"title": "Input",
"description": "A text input built on the Base UI input primitive with NSW form styling.",
"dependencies": [
"@base-ui/react",
"clsx",
"tailwind-merge"
],
"registryDependencies": [
"https://ui.digital.nsw.gov.au/registry/r/theme.json"
],
"files": [
{
"path": "src/components/input.tsx",
"content": "'use client'\n\nimport { Input as InputPrimitive } from '@base-ui/react/input'\nimport * as React from 'react'\n\nimport { cn } from '@/lib/utils'\n\nfunction Input({ className, type, ref, ...props }: React.ComponentProps<'input'>) {\n return (\n \n )\n}\n\nexport { Input }\n\nexport type InputProps = React.ComponentProps\n",
"type": "registry:ui",
"target": "components/input.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"
}
}