"use client"
import * as React from "react"
import { cn } from "../../lib/utils"
import { ScrollRegion } from "./scroll-region"
/**
* Low-level table chrome — visual language matches `DataTable` grid surfaces
* (bordered scrollport, header band, vertical gridlines). Use `DataTable` /
* `HubTable` for product data lists; use this for static doc matrices and
* small read-only tables.
*/
function Table({
className,
containerClassName,
scrollLabel = "Table",
...props
}: React.ComponentProps<"table"> & {
/** Classes on the keyboard-accessible scroll container. */
containerClassName?: string
/** Accessible name for the horizontal scroll viewport. */
scrollLabel?: string
}) {
return (
)
}
function TableHeader({ className, ...props }: React.ComponentProps<"thead">) {
return (
)
}
function TableBody({ className, ...props }: React.ComponentProps<"tbody">) {
return (
)
}
function TableFooter({ className, ...props }: React.ComponentProps<"tfoot">) {
return (
tr]:last:border-b-0",
className
)}
{...props}
/>
)
}
function TableRow({ className, ...props }: React.ComponentProps<"tr">) {
return (
)
}
function TableHead({ className, scope = "col", ...props }: React.ComponentProps<"th">) {
return (
|
)
}
function TableCell({ className, ...props }: React.ComponentProps<"td">) {
return (
|
)
}
function TableCaption({
className,
...props
}: React.ComponentProps<"caption">) {
return (
)
}
export {
Table,
TableHeader,
TableBody,
TableFooter,
TableHead,
TableRow,
TableCell,
TableCaption,
}