one-time password input component for the web built with svelte.
Install my-project with npm
npm i svelte-otp-inputs
<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;"}/>
| Name | Type | Required | Default |
|---|---|---|---|
| setOtp | Function | true | - |
| otpCount | number | false | 6 |
| wrapperStyle | String | false | "" |
| inputStyle | String | false | "" |