{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "table",
  "title": "Table",
  "type": "registry:ui",
  "files": [
    {
      "path": "packages/registry-native/components/table/Table.tsx",
      "content": "import * as React from 'react'\nimport { cssInterop } from 'react-native-css-interop'\nimport { ScrollView } from 'react-native'\nimport * as Primitive from '@rn-primitives/table'\nimport { renderTextChildren } from '@/lib/label-children'\nimport { cn } from '@/lib/utils'\n\nexport type TableProps = Primitive.RootProps & { className?: string }\nexport const Table = React.forwardRef<Primitive.RootRef, TableProps>((props, ref) => (\n  <ScrollView horizontal contentContainerStyle={{ flexGrow: 1 }}>\n    <Primitive.Root\n      {...props}\n      ref={ref}\n      className={cn('min-w-[320px] flex-1 overflow-hidden rounded-lg border border-border bg-card', props.className)}\n    />\n  </ScrollView>\n))\nTable.displayName = 'Table'\nexport type TableHeaderProps = Primitive.HeaderProps & { className?: string }\nexport const TableHeader = React.forwardRef<Primitive.HeaderRef, TableHeaderProps>((props, ref) => (\n  <Primitive.Header {...props} ref={ref} className={cn('bg-muted', props.className)} />\n))\nTableHeader.displayName = 'TableHeader'\nexport const TableBody = Primitive.Body\nexport type TableBodyProps = Primitive.BodyProps\nexport type TableRowProps = Primitive.RowProps & { className?: string }\nexport const TableRow = React.forwardRef<Primitive.RowRef, TableRowProps>((props, ref) => (\n  <Primitive.Row {...props} ref={ref} className={cn('min-h-[48px] flex-row border-b border-border', props.className)} />\n))\nTableRow.displayName = 'TableRow'\nexport type TableHeadProps = Primitive.HeadProps & { className?: string }\nexport const TableHead = React.forwardRef<Primitive.HeadRef, TableHeadProps>(\n  ({ children, className, ...props }, ref) => (\n    <Primitive.Head\n      {...props}\n      ref={ref}\n      className={cn('min-w-[96px] flex-1 justify-center px-[12px] py-[12px]', className)}\n    >\n      {renderTextChildren(children, 'font-semibold')}\n    </Primitive.Head>\n  ),\n)\nTableHead.displayName = 'TableHead'\nexport type TableCellProps = Primitive.CellProps & { className?: string }\nexport const TableCell = React.forwardRef<Primitive.CellRef, TableCellProps>(\n  ({ children, className, ...props }, ref) => (\n    <Primitive.Cell\n      {...props}\n      ref={ref}\n      className={cn('min-w-[96px] flex-1 justify-center px-[12px] py-[12px]', className)}\n    >\n      {renderTextChildren(children)}\n    </Primitive.Cell>\n  ),\n)\nTableCell.displayName = 'TableCell'\nexport type TableFooterProps = Primitive.FooterProps & { className?: string }\nexport const TableFooter = React.forwardRef<Primitive.FooterRef, TableFooterProps>((props, ref) => (\n  <Primitive.Footer {...props} ref={ref} className={cn('bg-muted', props.className)} />\n))\nTableFooter.displayName = 'TableFooter'\n\n// The published headless components forward className outside the NativeWind JSX transform.\ncssInterop(Primitive.Root, { className: 'style' })\ncssInterop(Primitive.Header, { className: 'style' })\ncssInterop(Primitive.Body, { className: 'style' })\ncssInterop(Primitive.Row, { className: 'style' })\ncssInterop(Primitive.Head, { className: 'style' })\ncssInterop(Primitive.Cell, { className: 'style' })\ncssInterop(Primitive.Footer, { className: 'style' })\n",
      "type": "registry:ui",
      "target": "~/components/ui/table/Table.tsx"
    },
    {
      "path": "packages/registry-native/components/table/index.ts",
      "content": "export * from './Table'\n",
      "type": "registry:ui",
      "target": "~/components/ui/table/index.ts"
    }
  ],
  "dependencies": [
    "react-native-css-interop",
    "@rn-primitives/table"
  ],
  "devDependencies": [],
  "registryDependencies": [
    "https://native.uipkge.dev/r/native/label-children.json"
  ],
  "description": "Composable native table with horizontal overflow and caller-owned rows.",
  "categories": [
    "layout"
  ]
}