MCPcopy Create free account
hub / github.com/bytebase/dbhub / Table

Function Table

frontend/src/components/ui/table.tsx:5–21  ·  view source on GitHub ↗
({ className, ...props }: React.ComponentProps<"table">)

Source from the content-addressed store, hash-verified

3import { cn } from "@/lib/utils";
4
5function Table({ className, ...props }: React.ComponentProps<"table">) {
6 return (
7 <div
8 className="relative w-full overflow-x-auto"
9 data-slot="table-container"
10 >
11 <table
12 className={cn(
13 "w-full caption-bottom in-data-[slot=frame]:border-separate in-data-[slot=frame]:border-spacing-0 text-sm",
14 className,
15 )}
16 data-slot="table"
17 {...props}
18 />
19 </div>
20 );
21}
22
23function TableHeader({ className, ...props }: React.ComponentProps<"thead">) {
24 return (

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected