MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / Table

Function Table

packages/react/src/components/table.tsx:7–18  ·  view source on GitHub ↗
({ className, ...props }: React.ComponentProps<"table">)

Source from the content-addressed store, hash-verified

5import { cn } from "../lib/utils";
6
7function Table({ className, ...props }: React.ComponentProps<"table">) {
8 return (
9 <div data-slot="table-container" className="relative w-full overflow-x-auto">
10 {/* oxlint-disable-next-line react/forbid-elements */}
11 <table
12 data-slot="table"
13 className={cn("w-full caption-bottom text-sm", className)}
14 {...props}
15 />
16 </div>
17 );
18}
19
20function TableHeader({ className, ...props }: React.ComponentProps<"thead">) {
21 return <thead data-slot="table-header" className={cn("[&_tr]:border-b", className)} {...props} />;

Callers

nothing calls this directly

Calls 1

cnFunction · 0.90

Tested by

no test coverage detected