1.1.3 • Published 11 months ago

svelte-otp-inputs v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months 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

11 months ago

1.1.2

12 months ago

1.1.1

12 months ago

1.1.0

12 months ago

1.0.9

12 months ago

1.0.8

12 months ago

1.0.7

12 months ago

1.0.6

12 months ago

1.0.5

12 months ago

1.0.4

12 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago