UNPKG

cosmo-ui

Version:
21 lines 1.13 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var tslib_1 = require("tslib"); var React = require("react"); var web_1 = require("../web"); var styles = require('../../src/styles/components/radio.scss'); var RadioButton = (function (_super) { tslib_1.__extends(RadioButton, _super); function RadioButton() { return _super !== null && _super.apply(this, arguments) || this; } RadioButton.prototype.render = function () { return (React.createElement(web_1.Column, { align: "center", className: styles.option }, React.createElement("input", { checked: this.props.isSelected, className: styles.radio, type: "radio", name: this.props.name, value: this.props.value, onChange: this.props.onChange }), React.createElement(web_1.Icon, { icon: this.props.img, fill: "primary", className: styles.icon, size: 34 }), React.createElement("label", { className: styles.label, htmlFor: this.props.name }, this.props.label))); }; return RadioButton; }(React.Component)); exports.RadioButton = RadioButton; //# sourceMappingURL=radio-button.js.map