import * as React from 'react' import { cn } from '@/lib/utils' const Table = ({ className, containerClassName, ...props }: React.ComponentProps<'table'> & { /** Override the scroll container (default already includes `overflow-x-auto`). * Sticky-left columns keep that default. A sticky header must resolve * against the page scroller instead of this box, which requires the box NOT * to be a scroll container at all — use `overflow-x-clip` (clip pairs with * `overflow-y: visible` without promoting it to `auto`), as the sticky * campaign lists (D7) do. Never use `overflow-x-visible` here. */ containerClassName?: string }) => (
) const TableHeader = ({ className, ...props }: React.ComponentProps<'thead'>) => ( ) const TableBody = ({ className, ...props }: React.ComponentProps<'tbody'>) => ( ) const TableRow = ({ className, ...props }: React.ComponentProps<'tr'>) => ( ) const TableHead = ({ className, ...props }: React.ComponentProps<'th'>) => (
) const TableCell = ({ className, ...props }: React.ComponentProps<'td'>) => ( ) const TableCaption = ({ className, ...props }: React.ComponentProps<'caption'>) => (
) export { Table, TableBody, TableCaption, TableCell, TableHead, TableHeader, TableRow }