UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

20 lines 999 B
import * as tslib_1 from "tslib"; import * as React from 'react'; import { BaseComponent, divProperties, getNativeProps, customizable } from '../../Utilities'; import { getLabelClassNames } from './Label.classNames'; var Label = /** @class */ (function (_super) { tslib_1.__extends(Label, _super); function Label() { return _super !== null && _super.apply(this, arguments) || this; } Label.prototype.render = function () { var _a = this.props, disabled = _a.disabled, required = _a.required, children = _a.children, className = _a.className, theme = _a.theme; return (React.createElement("label", tslib_1.__assign({}, getNativeProps(this.props, divProperties), { className: getLabelClassNames(theme, className, !!disabled, !!required).root }), children)); }; Label = tslib_1.__decorate([ customizable('Label', ['theme']) ], Label); return Label; }(BaseComponent)); export { Label }; //# sourceMappingURL=Label.js.map