box-ui-elements-mlh
Version:
23 lines (19 loc) • 472 B
JavaScript
// @flow
import * as React from 'react';
import classNames from 'classnames';
type Props = {
children: React.Node,
className?: string,
isFixedWidth?: boolean,
};
const TableCell = ({ children, className = '', isFixedWidth = false, ...rest }: Props) => (
<td
className={classNames('table-cell', className, {
'is-fixed-width': isFixedWidth,
})}
{...rest}
>
{children}
</td>
);
export default TableCell;