see the demo
npm i -s svelte-pin
<script>
import PinInput from 'svelte-pin';
let value;
</script>
<PinInput size={6} bind:pin={value} />
<h1>PIN: {value}</h1>
Prop | Default value | Description |
---|---|---|
pin | '' | Value of the input. need to bind to component's variable |
size | 6 | Length of the pin input |