Sha256: 50b9e4c9e6f16b33e237ef3cc1224222c3095d67b44b7b5a7e9ed87e6448729c
Contents?: true
Size: 534 Bytes
Versions: 35
Compression:
Stored size: 534 Bytes
Contents
const Table = ({ children, scrollable, sticky }) => { const className = classNames({ 'table-wrapper': true, 'table-wrapper--scrollable': scrollable, 'table-wrapper--sticky': sticky }); return ( <div className={className}> <table className="expanded"> {children} </table> </div> ); }; Table.PropTypes = { children: React.PropTypes.node.isRequired, scrollable: React.PropTypes.bool, sticky: React.PropTypes.bool }; Table.defaultProps = { scrollable: false, sticky: false };
Version data entries
35 entries across 35 versions & 1 rubygems