Repository URL to install this package:
|
Version:
2.0.4 ▾
|
"use strict";
var __importDefault = this && this.__importDefault || function (mod) {
return mod && mod.__esModule ? mod : {
"default": mod
};
};
Object.defineProperty(exports, "__esModule", {
value: true
});
const react_1 = __importDefault(require("react"));
const _styled_1 = require("./_styled");
class Label extends react_1.default.PureComponent {
render() {
// text is standard
const {
children,
text,
className,
identifier,
onClick,
dataQa
} = this.props;
const attributes = {
className,
onClick,
// meta
'htmlFor': identifier,
'key': identifier,
'tabIndex': '0',
'data-qa': dataQa
};
return react_1.default.createElement(_styled_1.StyledLabel, Object.assign({}, attributes, {
children: children || text
})); // return React.createElement('label', attributes, children || text)
}
}
exports.default = Label; //# sourceMappingURL=Label.js.map