Syncfusion Feedback

Trusted by the world’s leading companies

syncfusion trusted companies

Overview

The Angular OTP Input is a versatile form component designed for entering one-time passwords (OTP) during multi-factor authentication. It accepts a single character per input field, ensuring a focused and straightforward user experience. It offers extensive customization options with several built-in features, including input types, input lengths, styling modes, placeholders, separators, and more.

Angular OTP Input component.


Angular OTP Input Code Example

Easily get started with the Angular OTP Input using a few simple lines of C# code example as demonstrated below. Also explore our Angular OTP Input Example that shows you how to render and configure the OTP Input in Angular.

<div class="control-section">
    <div class="otp-container">
        <label> Default (Number) OTP Input </label>
        <div ejs-otpinput value="1234" type="number"></div>
    </div>
    <div class="otp-container">
        <label> Text OTP Input </label>
        <div ejs-otpinput value="e3c7" type="text"></div>
    </div>
    <div class="otp-container">
        <label> Password OTP Input </label>
        <div ejs-otpinput value="1234" type="password"></div>
    </div>
</div>

Input types

The Angular OTP Input component has three input types:

  • Number: The default input type, allowing digit entries only.
  • Text: Allows alphanumeric and special character entries for complex OTP inputs.
  • Password: Similar to the text type, but masks input characters for privacy.

Input types in Angular OTP Input.


Styling modes in Angular OTP Input.

Styling modes

The built-in styling modes are as follows:

  • Outlined: The default styling mode, displaying a border around the input fields.
  • Filled: Fills the input fields with a background color and includes an underline.
  • Underlined: Highlights each input field with an underline for a sleek look.

Placeholders

Display a hint character in each input field to indicate the expected value. If defined as a single character, it will be shown in all fields; otherwise, each field will display a part of the string based on its length.

Angular OTP Input placeholders.


Angular OTP Input separators.

Separators

Specify a character to be placed between input fields, customized to enhance the visual separation of OTP inputs.


Validation state

The Angular OTP Input component allows you to set the validation state, displaying success, warning, or error states based on the input validation.

Angular OTP Input validation states.


Customization

Customize the length of the OTP Input, styling for each field, the focusing state, and more.

Customized length of Angular OTP Input.

Input length

Adjust the length of the input fields, with a default display of four input fields.

Rounded fields in Angular OTP Input.

Rounded fields

Customize the appearance of the OTP Input with rounded fields, enhancing its visual appeal.

Field styling in Angular OTP Input.

Field styling

Customize the color, background color, and focus color of the input fields to enhance their appearance and make them stand out.


Built-in themes

The Angular OTP Input supports these built-in themes: Tailwind CSS, Bootstrap 5, Bootstrap 4, Bootstrap, Material, Fabric, Fluent, and high contrast. Users can customize one of these built-in themes or create new themes to achieve their desired look and feel by simply overriding SASS variables or using our Theme Studio application.


Accessibility

  • Full support for WAI-ARIA accessibility practices to work with screen readers and assistive devices.
  • UI visual elements such as foreground color, background color, line spacing, text, and images are designed based on WCAG 2.0 standards.
  • Right-to-left (RTL) text direction can be set for users working with RTL languages like Hebrew, Arabic, or Persian.

Developer-friendly APIs

The Angular OTP Input component offers APIs for customizing its appearance and behavior, as well as templates for changing its look and feel. With these APIs, developers can create a unique and highly customized OTP Input that fits seamlessly into their applications.





Other supported frameworks

The OTP Input is available for the Blazor, React, JavaScript, and Vue frameworks. Explore its platform-specific options through the following links:

Supported browsers

The Angular OTP Input works well with all modern web browsers, including Chrome, Firefox, Edge, Safari, and Opera.

Supported browsers in Angular OTP Input.

90+ ANGULAR UI COMPONENTS

Frequently Asked Questions

The Syncfusion® Angular OTP Input component supports the following features:

  • A rich set of features and a user-friendly experience for one-time password entry.
  • Fully customizable appearance, including input types, styles, separators, and more, to meet specific application needs.
  • Responsive design adapts to any device.
  • One of the best Angular OTP Input in the market that offers feature-rich UI to interact with the software.
  • Simple configuration and API.
  • Supports all modern browsers.
  • Mobile-touch friendly and responsive.
  • Extensive demos, and documentation to learn quickly and get started with Angular OTP Input.

We do not sell the Angular OTP Input separately. It is only available for purchase as part of the Syncfusion® team license, which contains over 90 Angular components, including the OTP Input. The price of the team license starts at $395 per month for 5 developers, and includes support and updates until the subscription expires. On top of this, we might be able to offer additional discounts based on currently active promotions. Please contact our product specialists today to see if you qualify for any additional discounts.

You can find our Angular OTP Input demo, which demonstrates how to render and configure the OTP Input.

No, our 1,900+ components and frameworks for web, mobile, and desktop, including our Angular OTP Input, are not sold individually. They are only available as part of a team license. However, we have competitively priced the product, so it only costs a little bit more than what some other vendors charge for their OTP Input component alone. We have also found that, in our experience, our customers usually start off using one of our products and then expand to several products quickly, so we felt it was best to offer all 1,900+ components and frameworks for a subscription fee that starts at $395 per month for a team of 5 developers. Additionally, we might be able to offer discounts based on currently active promotions. Please contact our product specialists today to see if you qualify for any additional discounts.

No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue, 5 or fewer developers, and 10 or fewer total employees.

A good place to start would be our comprehensive getting started documentation.

Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusion® reduces customers’ development time.
Here are some of their experiences.

Rated by users across the globe

Transform your applications today by downloading our free evaluation version
Download Free Trial No credit card required.

Syncfusion® Angular OTP Input Resources

Awards

Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion® is proud to hold the following industry awards.

Up arrow icon