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