2019-12-08 22:43:49 +01:00
|
|
|
/** @jsx React.DOM */
|
|
|
|
|
2022-10-08 20:37:38 +02:00
|
|
|
var LabelledSection = createReactClass({
|
2019-12-08 22:43:49 +01:00
|
|
|
render: function() {
|
|
|
|
var classname = "labelledsection"
|
|
|
|
if (this.props.vertical) {
|
|
|
|
classname = classname + " vertical";
|
|
|
|
} else {
|
|
|
|
classname = classname + " horizontal";
|
|
|
|
}
|
|
|
|
if (this.props.className) {
|
|
|
|
classname = classname + " " + this.props.className;
|
|
|
|
}
|
|
|
|
return (
|
|
|
|
<div
|
|
|
|
className={classname}
|
|
|
|
>
|
|
|
|
<div className="label">{this.props.label}</div>
|
|
|
|
<div className="content">{this.props.children}</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
},
|
|
|
|
});
|