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