2.8 KiB
import * as React from "react"
import { cn } from "@/lib/utils"
const Table = React.forwardRef< HTMLTableElement, React.HTMLAttributes
(({ className, ...props }, ref) => (
const TableHeader = React.forwardRef< HTMLTableSectionElement, React.HTMLAttributes
)) TableHeader.displayName = "TableHeader"(({ className, ...props }, ref) => (
const TableBody = React.forwardRef< HTMLTableSectionElement, React.HTMLAttributes
)) TableBody.displayName = "TableBody"(({ className, ...props }, ref) => (
const TableFooter = React.forwardRef< HTMLTableSectionElement, React.HTMLAttributes
tr]:last:border-b-0", className )} {...props} /> )) TableFooter.displayName = "TableFooter"(({ className, ...props }, ref) => (
const TableRow = React.forwardRef< HTMLTableRowElement, React.HTMLAttributes
)) TableRow.displayName = "TableRow"(({ className, ...props }, ref) => (
const TableHead = React.forwardRef< HTMLTableCellElement, React.ThHTMLAttributes
(({ className, ...props }, ref) => (
| [role=checkbox]]:translate-y-[2px]",
className
)}
{...props}
/>
))
TableHead.displayName = "TableHead"
const TableCell = React.forwardRef< HTMLTableCellElement, React.TdHTMLAttributes
| [role=checkbox]]:translate-y-[2px]",
className
)}
{...props}
/>
))
TableCell.displayName = "TableCell"
const TableCaption = React.forwardRef< HTMLTableCaptionElement, React.HTMLAttributes
|
|---|