openpanel/documentation/src/refine-theme/common-table.tsx
2024-02-05 10:23:04 +01:00

17 lines
451 B
TypeScript

import clsx from "clsx";
import React from "react";
type Props = React.ComponentProps<"table"> & {};
export const FULL_WIDTH_TABLE_VARIABLE_NAME = "preferred-full-table-width";
export const Table = (props: Props) => (
<div className={clsx("table-container")}>
<table {...props} />
</div>
);
export const FullTable = ({ children }: React.PropsWithChildren<{}>) => {
return <div className="table-full-width">{children}</div>;
};