ldx-widgets
Version:
widgets
31 lines (25 loc) • 726 B
JavaScript
(function() {
var GridFormSection, React, div, h3, ref;
React = require('react');
ref = React.DOM, div = ref.div, h3 = ref.h3;
GridFormSection = function(props) {
var children, content, title, titleClass;
children = props.children, title = props.title, titleClass = props.titleClass;
titleClass = titleClass || 'col-1-1';
title = title || '';
children = children || [];
content = [
div({
key: 'title',
className: titleClass
}, h3({
className: 'form-section-title'
}, title))
].concat(children);
return div({
key: 'grid-row-1',
className: 'grid grid-pad'
}, content);
};
module.exports = GridFormSection;
}).call(this);