# all files / lib/components/Label/ Label.js

89.47% Statements 17/19
57.14% Branches 4/7
100% Functions 5/5
100% Lines 16/16

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    1×
    1×
    1×
    1×

    1×
    1×
    1×
    1×
    1×
    1×
    15×

    1×
    23×
    23×

    1×

    1×

     "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, disabled = _a.disabled, required = _a.required, children = _a.children, className = _a.className;
            return (React.createElement("label", React.__spread({}, this.props, {className: css_1.css('ms-Label', className, {
                'is-disabled': disabled,
                'is-required': required
            })}), children));
        };
        return Label;
    }(React.Component));
    exports.Label = Label;

    //# sourceMappingURL=Label.js.map