1.0.3 • Published 3 years ago

svelte-pin v1.0.3

Weekly downloads
9
License
MIT
Repository
github
Last release
3 years ago

Masked PIN input components for svelte.

see the demo

Install:

npm i -s svelte-pin

Usage:

<script>

import PinInput from 'svelte-pin';

let value;

</script>



<PinInput size={6} bind:pin={value} />

<h1>PIN: {value}</h1>

Props:

PropDefault valueDescription
pin''Value of the input. need to bind to component's variable
size6Length of the pin input