1
0
mirror of synced 2024-12-14 15:22:53 +01:00
bemaniutils/bemani/frontend/static/components/labelledsection.react.js

19 lines
540 B
JavaScript

/** @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>
);
},
});