homeman-deno/components/Table.tsx

15 lines
275 B
TypeScript
Raw 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}
class={`border-separate [border-spacing:1.25rem] text-left ${className}`}
>
{children}
</table>
)
}