feat: v2 Table Component

This commit is contained in:
Rodrigo Antinarelli authored and James A. Petts committed 2020-05-15 13:38:56 +02:00
1 parent 01c5456ccf
commit 34961e5624
17 files changed
+304 -98

No files matched your search

@@ -0,0 +1,35 @@
import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
const Table = ({ children, className, fullWidth, style }) => {
return (
<div
className={classnames(
'text-lg text-white',
{
'w-full': fullWidth,
},
className
)}
style={style}
>
{children}
</div>
);
};
Table.defaultProps = {
className: '',
fullWidth: true,
style: {},
};
Table.propTypes = {
fullWidth: PropTypes.bool,
children: PropTypes.node.isRequired,
className: PropTypes.string,
style: PropTypes.object,
};
export default Table;