(props: ComponentProps<"tr">)
| 40 | }; |
| 41 | |
| 42 | export const TableRow = (props: ComponentProps<"tr">) => { |
| 43 | const [local, rest] = splitProps(props, ["class"]); |
| 44 | |
| 45 | return ( |
| 46 | <tr |
| 47 | class={cn( |
| 48 | "border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted", |
| 49 | local.class, |
| 50 | )} |
| 51 | {...rest} |
| 52 | /> |
| 53 | ); |
| 54 | }; |
| 55 | |
| 56 | export const TableHead = (props: ComponentProps<"th">) => { |
| 57 | const [local, rest] = splitProps(props, ["class"]); |