1.1.3 • Published 2 years ago

svelte-otp-inputs v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

svelte-otp-inputs

one-time password input component for the web built with svelte.

Installation

Install my-project with npm

 npm i svelte-otp-inputs

Usage/Examples

 <script type="ts">
    import OTPInput from 'svelte-otp-inputs';
    let otpNumber = ''
    const getOtp = (otp, paste)=>{ 
        otpNumber = otp;
    }

 </script>
 <OTPInput  setOtp={getOtp} otpCount={6} wrapperStyle={"background:white;"} inputStyle={"color:gray;"}/>

Props

NameTypeRequiredDefault
setOtpFunctiontrue-
otpCountnumberfalse6
wrapperStyleStringfalse""
inputStyleStringfalse""
1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago