mirror of
https://github.com/CompassConnections/Compass.git
synced 2026-02-25 11:27:09 -05:00
* Test * Add pretty formatting * Fix Tests * Fix Tests * Fix Tests * Fix * Add pretty formatting fix * Fix * Test * Fix tests * Clean typeckech * Add prettier check * Fix api tsconfig * Fix api tsconfig * Fix tsconfig * Fix * Fix * Prettier
18 lines
444 B
TypeScript
18 lines
444 B
TypeScript
import clsx from 'clsx'
|
|
|
|
/** `<table>` with styles. Expects table html (`<thead>`, `<td>` etc) */
|
|
export const Table = (props: {className?: string; children: React.ReactNode}) => {
|
|
const {className, children} = props
|
|
|
|
return (
|
|
<table
|
|
className={clsx(
|
|
'text-ink-700 w-full whitespace-nowrap text-left text-sm [&>thead]:font-bold [&_td]:p-2 [&_th]:p-2',
|
|
className,
|
|
)}
|
|
>
|
|
{children}
|
|
</table>
|
|
)
|
|
}
|