UNPKG

@yandex/ui

Version:

Yandex UI components

16 lines (15 loc) 1.05 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RadioboxControl = void 0; var tslib_1 = require("tslib"); var react_1 = tslib_1.__importDefault(require("react")); var Radiobox_1 = require("../Radiobox"); require("./Radiobox-Control.css"); var RadioboxControl = function (_a) { var autoFocus = _a.autoFocus, checked = _a.checked, controlRef = _a.controlRef, disabled = _a.disabled, labelledBy = _a.labelledBy, name = _a.name, onChange = _a.onChange, value = _a.value; return (react_1.default.createElement("input", { "aria-checked": checked, "aria-labelledby": labelledBy, autoFocus: autoFocus, // Отключаем autoComplete, чтобы в FireFox // не сохранялось значение при перезагрузке страницы. autoComplete: "off", checked: checked, className: Radiobox_1.cnRadiobox('Control'), disabled: disabled, name: name, onChange: onChange, ref: controlRef, type: "radio", value: value })); }; exports.RadioboxControl = RadioboxControl;