All Projects → syropian → vue-input-autowidth

syropian / vue-input-autowidth

Licence: MIT license
A Vue.js directive that automatically resizes an input's width to fit its contents.

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects

Projects that are alternatives of or similar to vue-input-autowidth

fluent-vue
Internationalization plugin for Vue.js
Stars: ✭ 137 (+45.74%)
Mutual labels:  vue2, vue3
security-code
A powerful security code input supports dynamic configuration of the number of input boxes.
Stars: ✭ 63 (-32.98%)
Mutual labels:  vue2, vue3
janak
Your next vue.js package!
Stars: ✭ 26 (-72.34%)
Mutual labels:  vue2, vue3
vue-ray
Debug your Vue 2 & 3 code with Ray to fix problems faster
Stars: ✭ 48 (-48.94%)
Mutual labels:  vue2, vue3
vue-input-streaming
A Vue2 Input Streaming RealTime And Two Way Data Binding Broadcasting with Pusher
Stars: ✭ 24 (-74.47%)
Mutual labels:  input, vue2
g2plot-vue
g2plot for vue, both 2 and 3
Stars: ✭ 106 (+12.77%)
Mutual labels:  vue2, vue3
vue-split-carousel
a carousel component for vue, meanwhile display several carousel item
Stars: ✭ 37 (-60.64%)
Mutual labels:  vue2, vue3
vue-pattern-input
Use RegExp to limit input
Stars: ✭ 25 (-73.4%)
Mutual labels:  vue2, vue3
v-pip
🖼 Tiny vue wrapper for supporting native picture-in-picture mode.
Stars: ✭ 30 (-68.09%)
Mutual labels:  vue2, vue3
vue-snippets
Visual Studio Code Syntax Highlighting For Vue3 And Vue2
Stars: ✭ 25 (-73.4%)
Mutual labels:  vue2, vue3
slider
Vue 3 slider component with multihandles, tooltips merging and formatting (+Tailwind CSS support).
Stars: ✭ 162 (+72.34%)
Mutual labels:  vue2, vue3
Vue Img Inputer
🏞 A graceful image type inputer / uploader
Stars: ✭ 548 (+482.98%)
Mutual labels:  input, vue2
v-drag
The simplest way to integrate dragging on Vue.js
Stars: ✭ 71 (-24.47%)
Mutual labels:  vue2, vue3
v-intl
Add i18n to your awesome Vue 3 app 🔉
Stars: ✭ 13 (-86.17%)
Mutual labels:  vue2, vue3
vue3-chat
2021👨‍🎓Vue2/3全家桶 + Koa+Socket+Vant3前后端分离移动端聊天应用。vue+node全栈入门项目
Stars: ✭ 46 (-51.06%)
Mutual labels:  vue2, vue3
vue-unstated
A tiny state management library for Vue Composition API.
Stars: ✭ 30 (-68.09%)
Mutual labels:  vue2, vue3
vue-insta-stories
Vue 2 & 3 library for Instagram like stories.
Stars: ✭ 45 (-52.13%)
Mutual labels:  vue2, vue3
toggle
Vue 3 toggle component with labels, custom slots and styling options (+Tailwind CSS support).
Stars: ✭ 75 (-20.21%)
Mutual labels:  vue2, vue3
hoc-element-table
📦 A Vue 3.x Table Component built on Webpack 5
Stars: ✭ 26 (-72.34%)
Mutual labels:  vue2, vue3
Vue Numeric
Input field component to display a formatted currency value based on Vue.js
Stars: ✭ 341 (+262.77%)
Mutual labels:  input, vue2

vue-input-autowidth Actions Status

A Vue.js directive that automatically resizes an input's width to fit its contents.

Demo

🚦 Looking for Vue 3 support? Check out the v2 branch.

Install

$ yarn add vue-input-autowidth

or

$ npm install --save vue-input-autowidth

It's also available on Unpkg: https://unpkg.com/vue-input-autowidth

Usage

import VueInputAutowidth from 'vue-input-autowidth'

Vue.use(VueInputAutowidth)

// and in your template...
<input
  type="text"
  v-autowidth="{maxWidth: '960px', minWidth: '20px', comfortZone: 0}"
  v-model="name"
  placeholder="Watch me change size with my content!"
/>

Options

maxWidth

Type: String Default: 'none'

The maximum width the input field will grow to.

minWidth

Type: String Default: 'none'

The minimum width the input field will shrink to.

comfortZone

Type: Number Default: 0

The additional space in pixels to add to the far side of the input's content.

Development

# To run the example
$ npm run example

# To run the tests
$ npm test

# To publish the dist file
$ npm run build

License

MIT © Collin Henderson

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].