{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "table", "title": "Table", "description": "A component for displaying tabular data with customizable styles", "dependencies": ["clsx", "tailwind-merge"], "files": [ { "path": "src/registry/thornberry/components/table.tsx", "content": "import { cn } from \"@/lib/utils\";\n\nimport type { ComponentProps } from \"react\";\n\ninterface TableProps extends ComponentProps<\"table\"> {\n containerProps?: string;\n}\n\nconst Table = ({ containerProps, className, ...rest }: TableProps) => (\n \n \n \n);\n\nconst TableHeader = ({ className, ...rest }: ComponentProps<\"thead\">) => (\n \n);\n\nconst TableBody = ({ className, ...rest }: ComponentProps<\"tbody\">) => (\n \n);\n\nconst TableFooter = ({ className, ...rest }: ComponentProps<\"tfoot\">) => (\n tr]:last:border-b-0\", className)}\n {...rest}\n />\n);\n\nconst TableRow = ({ className, ...rest }: ComponentProps<\"tr\">) => (\n \n);\n\nconst TableHead = ({ className, ...rest }: ComponentProps<\"th\">) => (\n \n);\n\nconst TableCell = ({ className, ...rest }: ComponentProps<\"td\">) => (\n \n);\n\nconst TableCaption = ({ className, ...rest }: ComponentProps<\"caption\">) => (\n \n);\n\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableHead,\n TableRow,\n TableCell,\n TableCaption,\n};\n", "type": "registry:ui" }, { "path": "src/lib/utils.ts", "content": "import { clsx } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nimport type { ClassValue } from \"clsx\";\n\nexport const cn = (...inputs: ClassValue[]) => {\n return twMerge(clsx(inputs));\n};\n", "type": "registry:lib", "target": "" } ], "type": "registry:ui" }