1
0
mirror of synced 2024-12-24 03:34:50 +01:00
bemaniutils/bemani/frontend/static/components/labelledsection.react.js

19 lines
540 B
JavaScript
Raw Normal View History

/** @jsx React.DOM */
var LabelledSection = createReactClass({
render: function() {
return (
<div
className={classNames(
"labelledsection",
{"vertical": this.props.vertical, "horizontal": !this.props.vertical},
this.props.className
)}
>
<div className="label">{this.props.label}</div>
<div className="content">{this.props.children}</div>
</div>
);
},
});