homeman-deno/components/Table.tsx

15 lines
275 B
TypeScript
Raw Permalink Normal View History

2024-01-09 23:06:44 -06:00
import { JSX } from 'preact'
export function Table(
{ children, className, ...props }: JSX.HTMLAttributes<HTMLTableElement>,
) {
return (
<table
{...props}
2024-01-17 21:14:33 -06:00
class={`border-separate [border-spacing:0.50rem] text-left ${className}`}
2024-01-09 23:06:44 -06:00
>
{children}
</table>
)
}