Socket
Socket
Sign inDemoInstall

@encoreskytech/ng-otp-input-box

Package Overview
Dependencies
5
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @encoreskytech/ng-otp-input-box

A customizable, OTP input module for the web built with Angular


Version published
Weekly downloads
0
decreased by-100%
Maintainers
3
Install size
152 kB
Created
Weekly downloads
 

Readme

Source

Installation

npm install --save @encoreskytech/ng-otp-input-box

Usage

Add NgOtpInputBoxModule to imports app.module.ts something like

import { AppComponent } from  './app.component';
import { OtpInputBoxModule } from  '@encoreskytech/ng-otp-input-box';

    @NgModule({
    declarations: [AppComponent],
    imports: [OtpInputBoxModule]
    })

Add component to your page:

<ng-otp-input-box [otpLength]="6" [onlyNumber]="false" [upperCase]="true" [mask]="false" (onInputChange)="fetchOTPvalue($event)" ></ng-otp-input-box>

API

NameTypeRequireddefaultDescription
otpLengthBooleanfalse6Length of the otp
onlyNumberBooleanfalse--To allow only integer values
upperCaseBooleanfalse--To make input field capitalize
maskBooleanfalse--To make input field as password
onInputChangefunctiontrue--Function that will receive the otp

Contributor

Mahesh Soni

Keywords

FAQs

Last updated on 08 Dec 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc