Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 350 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 350 Bytes

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!"
/>