nyanpasu / svelte-pin

Masked PIN input components for svelte

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Masked PIN input component for svelte

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
size 6 Length of the pin input

About

Masked PIN input components for svelte


Languages

Language:Svelte 100.0%