@yandex/ui
Version:
Yandex UI components
10 lines (9 loc) • 676 B
JavaScript
import { __read } from "tslib";
import React, { useState } from 'react';
import { TextareaWithAutoResize } from '@yandex-lego/components/Textarea/desktop/bundle';
export var AutoResize = function () {
var _a = __read(useState('Continue typing text until it will fill entire textarea. ' +
'Feel free to unleash your keyboard shortcuts Ninja skills like a: CMD+A, CMD+C, CMD+V. ' +
'Continue typing more text like these here '), 2), value = _a[0], setValue = _a[1];
return (React.createElement(TextareaWithAutoResize, { hasClear: true, size: "m", view: "default", value: value, onChange: function (event) { return setValue(event.target.value); } }));
};