svelte-input-auto-width
v2.1.0
Published
svelte action to set the width of input fields based on their value
Downloads
94
Readme
svelte-input-auto-width
A svelte action that automatically resizes input fields based on their value.
Install
$ npm install svelte-input-auto-width
Usage
<script>
import { autoWidth } from 'svelte-input-auto-width';
</script>
<input
use:autoWidth
type="text"
placeholder="Type and watch me resize!"
/>