UNPKG

ui-layout

Version:

React row/col layout components

45 lines (28 loc) 588 B
/** * @fileoverview Single layout column component * @author Pavel Mach��ek <pavex@ines.cz> */ import React from 'react'; import PropTypes from 'prop-types'; export default class Col extends React.Component { // static propTypes = { size: PropTypes.number, align: PropTypes.oneOf(['left', 'right']), padding: PropTypes.oneOfType([PropTypes.bool, PropTypes.number]) }; // static defaultProps = { size: null, align: null, padding: null }; // render() { return ( <div className="px-layout-col-content"> {this.props.children} </div> ); }; }