@yandex/ui
Version:
Yandex UI components
16 lines (15 loc) • 978 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CheckboxControl = void 0;
var tslib_1 = require("tslib");
var react_1 = tslib_1.__importDefault(require("react"));
var Checkbox_1 = require("../Checkbox");
require("./Checkbox-Control.css");
var CheckboxControl = function (_a) {
var controlRef = _a.controlRef, className = _a.className, tabIndex = _a.tabIndex, required = _a.required, props = tslib_1.__rest(_a, ["controlRef", "className", "tabIndex", "required"]);
return (react_1.default.createElement("input", tslib_1.__assign({}, props, { tabIndex: tabIndex, required: required,
// Отключаем autoComplete, чтобы в FireFox
// не сохранялось значение при перезагрузке страницы.
autoComplete: "off", className: Checkbox_1.cnCheckbox('Control', null, [className]), ref: controlRef, type: "checkbox" })));
};
exports.CheckboxControl = CheckboxControl;