import * as React from "react"; import { cn } from "../utils/classname"; const Table = React.forwardRef(function Table( { className, ...props }: React.ComponentPropsWithoutRef<"table">, ref: React.ForwardedRef> ) { return (
); }); Table.displayName = "Table"; const TableHeader = React.forwardRef(function TableHeader( { className, ...props }: React.ComponentPropsWithoutRef<"thead">, ref: React.ForwardedRef> ) { return ; }); TableHeader.displayName = "TableHeader"; const TableBody = React.forwardRef(function TableBody( { className, ...props }: React.ComponentPropsWithoutRef<"tbody">, ref: React.ForwardedRef> ) { return ; }); TableBody.displayName = "TableBody"; const TableFooter = React.forwardRef(function TableFooter( { className, ...props }: React.ComponentPropsWithoutRef<"tfoot">, ref: React.ForwardedRef> ) { return ; }); TableFooter.displayName = "TableFooter"; const TableRow = React.forwardRef(function TableRow( { className, ...props }: React.ComponentPropsWithoutRef<"tr">, ref: React.ForwardedRef> ) { return ; }); TableRow.displayName = "TableRow"; const TableHead = React.forwardRef(function TableHead( { className, ...props }: React.ComponentPropsWithoutRef<"th">, ref: React.ForwardedRef> ) { return (
[role=checkbox]]:translate-y-[2px]", className )} {...props} /> ); }); TableHead.displayName = "TableHead"; const TableCell = React.forwardRef(function TableCell( { className, ...props }: React.ComponentPropsWithoutRef<"td">, ref: React.ForwardedRef> ) { return ( [role=checkbox]]:translate-y-[2px]", className)} {...props} /> ); }); TableCell.displayName = "TableCell"; const TableCaption = React.forwardRef(function TableCaption( { className, ...props }: React.ComponentPropsWithoutRef<"caption">, ref: React.ForwardedRef> ) { return
; }); TableCaption.displayName = "TableCaption"; export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption };