1
0
mirror of synced 2024-12-05 02:57:55 +01:00
bemaniutils/bemani/frontend/static/components/labelledsection.react.js

24 lines
663 B
JavaScript
Raw Normal View History

/** @jsx React.DOM */
var LabelledSection = createReactClass({
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>
);
},
});