We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Syncfusion Feedback

Trusted by the world’s leading companies

Syncfusion Trusted Companies

Overview

The Blazor 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.

Blazor OTP Input component


Input types

The Blazor 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.

Blazor OTP Input types


Blazor OTP Input styling modes

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.

Blazor OTP Input placeholder


Blazor OTP Input separator

Separators

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


Validation state

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

Blazor OTP Input validation state


Customization

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

Blazor OTP Input

Input length

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

Blazor OTP Input

Rounded fields

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

Blazor 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 Blazor 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 Blazor OTP Input component offers APIs for customizing its appearance and behavior, as well as templates for customizing its look and feel. With these APIs, developers can create a unique and highly customized OTP Input that fits seamlessly into their applications.


Struggling to decide on the right product?

Our comprehensive competitor comparison of Blazor components will guide you to the perfect choice.

tick-mark 85+ UI components
tick-mark 960+ interactive Blazor demos
tick-mark 2.3M+ downloads
competitive-banner-FT-image

Blazor Components – 85+ UI and DataViz Components

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.

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