# Luna Otp Input One time password input. ## Demo https://luna.liriliri.io/?path=/story/otp-input ## Install Add the following script and style to your page. ```html ``` You can also get it on npm. ```bash npm install luna-otp-input --save ``` ```javascript import 'luna-otp-input/luna-otp-input.css' import LunaOtpInput from 'luna-otp-input' ``` ## Usage ```javascript const otpInput = new OtpInput(container, { inputNum: 6 }) otpInput.getValue() ``` ## Configuration * inputNum(number): Number of inputs. ## Api ### getValue(): string Get otp value.