src/table.tsx
import { clsx } from "clsx";
import type { ComponentProps, FC } from "react";
type Props = {
bordered?: boolean;
fullwidth?: boolean;
hoverable?: boolean;
striped?: boolean;
};
export const Table: FC<Omit<ComponentProps<"table">, keyof Props> & Props> = ({
bordered,
fullwidth,
hoverable,
striped,
...props
}) => (
<table
{...props}
className={clsx(
"table",
bordered && "is-bordered",
fullwidth && "is-fullwidth",
hoverable && "is-hoverable",
striped && "is-striped",
)}
/>
);