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