UNPKG

pipe-storyboard

Version:

Set of components to create storyboards from pipe queries

21 lines (20 loc) 615 B
(function(){ var ref$, createClass, ref1$, div, label; ref$ = require('react'), createClass = ref$.createClass, ref1$ = ref$.DOM, div = ref1$.div, label = ref1$.label; module.exports = createClass({ getDefaultProps: function(){ return { className: "", label: "", showLabel: true, style: {} }; }, render: function(){ return div({ className: "labelled-component " + this.props.className, style: this.props.style }, this.props.showLabel ? label(null, this.props.label) : void 8, this.props.children); } }); }).call(this);