Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
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
The npm package vue-textarea-autosize receives a total of 7,727 weekly downloads. As such, vue-textarea-autosize popularity was classified as popular.
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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.