(props: ComponentProps<"table">)
| 2 | import { type ComponentProps, splitProps } from "solid-js"; |
| 3 | |
| 4 | export const Table = (props: ComponentProps<"table">) => { |
| 5 | const [local, rest] = splitProps(props, ["class"]); |
| 6 | |
| 7 | return ( |
| 8 | <div class="w-full overflow-auto"> |
| 9 | <table |
| 10 | class={cn("w-full caption-bottom text-sm", local.class)} |
| 11 | {...rest} |
| 12 | /> |
| 13 | </div> |
| 14 | ); |
| 15 | }; |
| 16 | |
| 17 | export const TableHeader = (props: ComponentProps<"thead">) => { |
| 18 | const [local, rest] = splitProps(props, ["class"]); |