{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "table", "type": "registry:ui", "title": "Table", "description": "A table component that can be used to display data in a tabular format.", "files": [ { "path": "registry/tra-kit/components/table.tsx", "content": "import { HTMLProps, ReactNode } from 'react';\r\nimport { cn } from '@/lib/utils';\r\n\r\ntype ITable = HTMLProps & {\r\n children: ReactNode;\r\n className?: string;\r\n};\r\n\r\ntype IThead = HTMLProps & {\r\n children: ReactNode;\r\n className?: string;\r\n};\r\n\r\ntype ITbody = HTMLProps & {\r\n children: ReactNode;\r\n className?: string;\r\n};\r\n\r\ntype ITr = HTMLProps & {\r\n children: ReactNode;\r\n className?: string;\r\n};\r\n\r\ntype ITh = HTMLProps & {\r\n children: ReactNode;\r\n className?: string;\r\n};\r\n\r\ntype ITd = HTMLProps & {\r\n children: ReactNode;\r\n className?: string;\r\n};\r\n\r\nexport const Table = ({ children, className, ...otherProps }: ITable) => (\r\n \r\n {children}\r\n \r\n);\r\n\r\nexport const THead = ({ children, className, ...otherProps }: IThead) => (\r\n \r\n {children}\r\n \r\n);\r\n\r\nexport const TBody = ({ children, className, ...otherProps }: ITbody) => (\r\n \r\n {children}\r\n \r\n);\r\n\r\nexport const TR = ({ children, className, ...otherProps }: ITr) => (\r\n \r\n {children}\r\n \r\n);\r\n\r\nexport const TH = ({ children, className, ...otherProps }: ITh) => (\r\n \r\n {children}\r\n \r\n);\r\n\r\nexport const TD = ({ children, className, ...otherProps }: ITd) => (\r\n \r\n {children}\r\n \r\n);\r\n", "type": "registry:ui" } ] }