Repository URL to install this package:
|
Version:
0.0.0 ▾
|
import React, { FC } from 'react'
import { classNames } from '../index'
const Root: FC<React.DetailedHTMLProps<React.TableHTMLAttributes<HTMLTableElement>, HTMLTableElement>> = ({
className,
children,
...props
}) => (
<div
className={classNames(
className,
'overflow-hidden overflow-x-auto rounded-xl sm:rounded-2xl z-10 shadow-md shadow-black/20 bg-white bg-opacity-[0.02]'
)}
>
<table {...props} className="w-full border-collapse">
{children}
</table>
</div>
)
export default Root