"use strict";
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var React = require('react');
var css_1 = require('../../utilities/css');
require('./Label.scss');
var Label = (function (_super) {
__extends(Label, _super);
function Label() {
_super.apply(this, arguments);
}
Label.prototype.render = function () {
var _a = this.props, isDisabled = _a.isDisabled, isRequired = _a.isRequired, children = _a.children, htmlFor = _a.htmlFor;
return (React.createElement("label", React.__spread({}, this.props, {htmlFor: htmlFor, className: css_1.css('ms-Label', {
'is-disabled': isDisabled,
'is-required': isRequired
})}), children));
};
return Label;
}(React.Component));
exports.Label = Label;
//# sourceMappingURL=Label.js.map
|