@frsource/autoresize-textarea
v2.0.109
Published
Minimalistic plugin to autosize your textareas! 💪
Downloads
19,128
Maintainers
Readme
Quick start
Installation
npm install @frsource/autoresize-textarea
yarn add @frsource/autoresize-textarea
pnpm add @frsource/autoresize-textarea
Modern JS/Typescript
import { attach } from '@frsource/autoresize-textarea';
const textarea = document.querySelector('textarea');
const { detach } = attach(textarea);
// detach plugin whenever you want (e.g. on component unmount)
// detach();
UMD
const textarea = document.querySelector('textarea');
const { detach } = window.autoresizeTextarea.attach(textarea);
// detach plugin whenever you want (e.g. on component unmount)
// detach();
For working example, check out our demo.
Questions
Don’t hesitate to ask a question directly on the discussions board!
Changelog
Changes for every release are documented in the release notes and CHANGELOG file.
License
Copyright (c) 2022-present, Jakub FRS Freisler, FRSOURCE