svelte-pin

1.0.3 • Public • Published

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:

Prop Default value Description
pin '' Value of the input. need to bind to component's variable
size 6 Length of the pin input

Package Sidebar

Install

npm i svelte-pin

Weekly Downloads

1

Version

1.0.3

License

MIT

Unpacked Size

4.39 kB

Total Files

3

Last publish

Collaborators

  • rebotak