A Vue.js directive that automatically resizes an input's width to fit its contents.
MIT License
Bot releases are visible (Hide)
min-width
or max-width
inline style if a minWidth
/ maxWith
option is passedwatchWindowSize
: When enabled, the directive will listen to the window resize event, and resize the input if needed.windowResizeHandlerDebounceTime
: The debounce time in milliseconds for the window resize event. Only applies if watchWindowSize
is true
.disableNonInputWarning
: Disables the console warning if you try and use the directive on a non-input element.Published by syropian about 3 years ago
InputAutoWidthOptions
Published by syropian about 3 years ago
Published by syropian about 3 years ago
This is a brand new release that is compatible with Vue 3 and written in TypeScript.
Please consult the v2 documentation for installation instructions.
10px
, 4rem
, 2ch
, etc.Published by syropian over 3 years ago
https://github.com/syropian/vue-input-autowidth/compare/v1.0.10...v1.0.11
Published by syropian over 4 years ago
Published by syropian about 5 years ago
https://github.com/syropian/vue-input-autowidth/compare/v1.0.8...v1.0.9
Published by syropian about 5 years ago
https://github.com/syropian/vue-input-autowidth/compare/v1.0.7...v1.0.8
Published by syropian about 5 years ago
https://github.com/syropian/vue-input-autowidth/compare/v1.0.6...v1.0.7
Published by syropian about 5 years ago
https://github.com/syropian/vue-input-autowidth/compare/v1.0.5...v1.0.6