@yandex/ui
Version:
Yandex UI components
13 lines (12 loc) • 865 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Control = void 0;
var tslib_1 = require("tslib");
var react_1 = tslib_1.__importDefault(require("react"));
var Attach_const_1 = require("../Attach.const");
require("./Attach-Control.css");
var Control = function (_a) {
var disabled = _a.disabled, id = _a.id, innerRef = _a.innerRef, _b = _a.name, name = _b === void 0 ? 'attachment' : _b, onChange = _a.onChange, accept = _a.accept, props = tslib_1.__rest(_a, ["disabled", "id", "innerRef", "name", "onChange", "accept"]);
return (react_1.default.createElement("input", tslib_1.__assign({}, props, { autoComplete: "off", className: Attach_const_1.cnAttach('Control'), disabled: disabled, id: id, name: name, onChange: onChange, ref: innerRef, tabIndex: -1, type: "file", accept: accept })));
};
exports.Control = Control;