
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
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,982 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.