All Projects → github → textarea-autosize

github / textarea-autosize

Licence: MIT license
Autosizes textarea to size of it's contents.

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

Projects that are alternatives of or similar to textarea-autosize

burgundy
A simple wrapper for objects (think of Burgundy as a decorator/presenter) in less than 150 lines.
Stars: ✭ 48 (-34.25%)
Mutual labels:  decorator
singleton decorator
A testable singleton decorator
Stars: ✭ 39 (-46.58%)
Mutual labels:  decorator
discord-nestjs
👾 NestJS package for discord.js
Stars: ✭ 173 (+136.99%)
Mutual labels:  decorator
python-valid8
Yet another validation lib ;). Provides tools for general-purpose variable validation, function inputs/outputs validation as well as class fields validation. All entry points raise consistent ValidationError including all contextual details, with dynamic inheritance of ValueError/TypeError as appropriate.
Stars: ✭ 24 (-67.12%)
Mutual labels:  decorator
session-resume
Annotate fields to be persisted on navigation away from the current page
Stars: ✭ 105 (+43.84%)
Mutual labels:  decorator
react-reflorp
Basically a simple ORM using Refetch, but the data is stored in Redux. Feel free to open an issue if you have a question or feature request.
Stars: ✭ 45 (-38.36%)
Mutual labels:  decorator
performance-decorator
🏇User behavior & Function execution tracking solution - 大型前端项目的用户行为跟踪,函数调用链分析,断点调试共享化和复用化实践
Stars: ✭ 39 (-46.58%)
Mutual labels:  decorator
laravel-decorator
Easily decorate your method calls with laravel-decorator package
Stars: ✭ 125 (+71.23%)
Mutual labels:  decorator
presenter
Easy class decoration.
Stars: ✭ 13 (-82.19%)
Mutual labels:  decorator
ngx-redux-core
The modern redux integration for Angular 6+
Stars: ✭ 32 (-56.16%)
Mutual labels:  decorator
Hotkey
Trigger an action on an element with a keyboard shortcut.
Stars: ✭ 2,389 (+3172.6%)
Mutual labels:  decorator
combobox-nav
Attach combobox navigation behavior to <input> or <textarea>.
Stars: ✭ 76 (+4.11%)
Mutual labels:  decorator
min
A decorator web framework for deno
Stars: ✭ 21 (-71.23%)
Mutual labels:  decorator
bash-cache
Transparent caching layer for bash functions; particularly useful for functions invoked as part of your prompt.
Stars: ✭ 45 (-38.36%)
Mutual labels:  decorator
vue-corator
this is vue decorator utils
Stars: ✭ 33 (-54.79%)
Mutual labels:  decorator
python-makefun
Dynamically create python functions with a proper signature.
Stars: ✭ 62 (-15.07%)
Mutual labels:  decorator
check-all
Multiple checkbox selection helper.
Stars: ✭ 70 (-4.11%)
Mutual labels:  decorator
Decor.NET
A simple way to decorate a class with additional functionality using attributes.
Stars: ✭ 29 (-60.27%)
Mutual labels:  decorator
typescript-retry-decorator
lightweight typescript retry decorator with 0 dependency.
Stars: ✭ 50 (-31.51%)
Mutual labels:  decorator
typescript-lazy-get-decorator
Lazily evaluates a getter on an object and caches the returned value
Stars: ✭ 33 (-54.79%)
Mutual labels:  decorator

Textarea Autosize

Autosizes textarea to size of its contents.

Installation

$ npm install @github/textarea-autosize

Usage

The autosizing behavior must be explicitly activated on the <textarea>.

import autosize from '@github/textarea-autosize'
autosize(document.querySelector('textarea.foo'))

Using a library like selector-observer, the behavior can automatically be applied to any textareas matching a class name.

import {observe} from 'selector-observer'
import autosize from '@github/textarea-autosize'

observe('textarea.autosize', { subscribe: autosize })

Browser support

  • Chrome
  • Firefox
  • Safari
  • Internet Explorer 11
  • Microsoft Edge

Development

npm install
npm test

License

Distributed under the MIT license. See LICENSE for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].