{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "table", "title": "Table", "description": "Polaris-styled Table component.", "dependencies": [], "devDependencies": [ "@shopify/polaris-types" ], "registryDependencies": [ "@polaris-shadcn/theme", "@polaris-shadcn/utils" ], "files": [ { "path": "registry/templates/components/ui/table.tsx", "content": "import * as React from \"react\";\nimport { cn } from \"../../lib/utils\";\n\nexport type TableProps = React.ComponentPropsWithoutRef<\"table\">;\n\nconst Table = React.forwardRef(\n ({ className, ...props }, ref) => (\n
\n \n
\n ),\n);\nTable.displayName = \"Table\";\n\nexport type TableHeaderProps = React.ComponentPropsWithoutRef<\"thead\">;\n\nconst TableHeader = React.forwardRef(\n ({ className, ...props }, ref) => (\n \n ),\n);\nTableHeader.displayName = \"TableHeader\";\n\nexport type TableBodyProps = React.ComponentPropsWithoutRef<\"tbody\">;\n\nconst TableBody = React.forwardRef(\n ({ className, ...props }, ref) => (\n \n ),\n);\nTableBody.displayName = \"TableBody\";\n\nexport type TableFooterProps = React.ComponentPropsWithoutRef<\"tfoot\">;\n\nconst TableFooter = React.forwardRef(\n ({ className, ...props }, ref) => (\n \n ),\n);\nTableFooter.displayName = \"TableFooter\";\n\nexport type TableRowProps = React.ComponentPropsWithoutRef<\"tr\">;\n\nconst TableRow = React.forwardRef(\n ({ className, ...props }, ref) => (\n \n ),\n);\nTableRow.displayName = \"TableRow\";\n\nexport type TableHeadProps = React.ComponentPropsWithoutRef<\"th\">;\n\nconst TableHead = React.forwardRef(\n ({ className, ...props }, ref) => (\n \n ),\n);\nTableHead.displayName = \"TableHead\";\n\nexport type TableCellProps = React.ComponentPropsWithoutRef<\"td\">;\n\nconst TableCell = React.forwardRef(\n ({ className, ...props }, ref) => (\n \n ),\n);\nTableCell.displayName = \"TableCell\";\n\nexport type TableCaptionProps = React.ComponentPropsWithoutRef<\"caption\">;\n\nconst TableCaption = React.forwardRef<\n HTMLTableCaptionElement,\n TableCaptionProps\n>(({ className, ...props }, ref) => (\n \n));\nTableCaption.displayName = \"TableCaption\";\n\nexport {\n Table,\n TableHeader,\n TableBody,\n TableFooter,\n TableHead,\n TableRow,\n TableCell,\n TableCaption,\n};\n", "type": "registry:ui" } ], "type": "registry:ui" }