ohif-viewer/platform/ui/src/components/Table/Table.jsx

36 lines
633 B
React
Raw Normal View History

2020-03-20 22:56:27 +01:00
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;