v-autosize
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

v-autosize

NPM Package Minified Size Build Status License: MIT

Lightweight Vue 3 wrapper for autosize. Use v-autosize directive on the textarea element to make it automatically adjust height to fit text.

Using Vue 2?

Check old version v-autosize@1

Install

npm install v-autosize

Register

Register directive locally in the component

import autosize from 'v-autosize';

// Your component
export default {
    directives: {
        autosize,
    }
}

Or register directive globally in the root Vue instance

import Vue from 'vue';
import autosize from 'v-autosize/dist/plugin';

Vue.use(autosize);

Use

Use v-autosize directive on the textarea element

<textarea v-autosize></textarea>

Comparison

License

MIT License

Dependencies (1)

Dev Dependencies (10)

Package Sidebar

Install

npm i v-autosize

Weekly Downloads

1,048

Version

2.0.0

License

MIT

Unpacked Size

22.9 kB

Total Files

11

Last publish

Collaborators

  • shrpne