@yandex/ui
Version:
Yandex UI components
9 lines (8 loc) • 1.44 kB
JavaScript
import { __assign, __rest } from "tslib";
import React from 'react';
import { cnTextarea } from '../Textarea';
import './Textarea-Control.css';
export var TextareaControl = function (_a) {
var autoFocus = _a.autoFocus, className = _a.className, cols = _a.cols, controlRef = _a.controlRef, defaultValue = _a.defaultValue, disabled = _a.disabled, id = _a.id, maxLength = _a.maxLength, name = _a.name, onBlur = _a.onBlur, onChange = _a.onChange, onFocus = _a.onFocus, onKeyDown = _a.onKeyDown, onKeyPress = _a.onKeyPress, onKeyUp = _a.onKeyUp, placeholder = _a.placeholder, readOnly = _a.readOnly, required = _a.required, rows = _a.rows, tabIndex = _a.tabIndex, value = _a.value, props = __rest(_a, ["autoFocus", "className", "cols", "controlRef", "defaultValue", "disabled", "id", "maxLength", "name", "onBlur", "onChange", "onFocus", "onKeyDown", "onKeyPress", "onKeyUp", "placeholder", "readOnly", "required", "rows", "tabIndex", "value"]);
return (React.createElement("textarea", __assign({}, props, { autoFocus: autoFocus, className: cnTextarea('Control', null, [className]), cols: cols, defaultValue: defaultValue, disabled: disabled, id: id, maxLength: maxLength, name: name, onBlur: onBlur, onChange: onChange, onFocus: onFocus, onKeyDown: onKeyDown, onKeyPress: onKeyPress, onKeyUp: onKeyUp, placeholder: placeholder, readOnly: readOnly, ref: controlRef, required: required, rows: rows, tabIndex: tabIndex, value: value })));
};