Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
vue-textarea-autosize
Advanced tools
Vue component provides textarea with automatically adjustable height and without any wrappers and dependencies
Vue component provides textarea with automatically adjustable height and without any wrappers and dependencies
v-model
binding in parentNote
.native
modifier read more<textarea-autosize rows="1" ... />
Install with npm
npm i -S vue-textarea-autosize
or with yarn
yarn add vue-textarea-autosize
import Vue from 'vue'
import TextareaAutosize from 'vue-textarea-autosize'
Vue.use(TextareaAutosize)
In components
<textarea-autosize
placeholder="Type something here..."
ref="myTextarea"
v-model="value"
:min-height="30"
:max-height="350"
@blur.native="onBlurTextarea"
/>
Focus/blur or select content in components
this.$refs.myTextarea.$el.focus()
this.$refs.myTextarea.$el.blur()
this.$refs.myTextarea.$el.select()
Props | Required | Type | Default | Description |
---|---|---|---|---|
v-model | no | String, Number | '' | value binding |
value | no | String, Number | '' | part of the v-model binding |
autosize | no | Boolean | true | allow to enable/disable auto resizing dynamically |
minHeight | no | Number | null | min textarea height |
maxHeight | no | Number | null | max textarea height |
important | no | Boolean, Array | false | Force !important for style properties e.g. when using http://cleanslatecss.com/. Allowed values: true , false , all or some of ['resize', 'overflow', 'height'] |
Name | Params | Description |
---|---|---|
input | value | fires on textarea content changed. part of the v-model binding. read more |
There are no slots available
FAQs
Vue component provides textarea with automatically adjustable height and without any wrappers and dependencies
We found that vue-textarea-autosize demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.