Enum OtpInputType
Defines the input type options for the SfOtpInput component, determining what characters are accepted.
Namespace: Syncfusion.Blazor.Inputs
Assembly: Syncfusion.Blazor.dll
Syntax
public enum OtpInputType
Remarks
This enumeration controls the input validation and character filtering behavior of the OTP component. Different input types provide different user experiences and security characteristics.
Fields
| Name | Description |
|---|---|
| Number | Accepts only numeric characters (0-9) and automatically filters out non-numeric input. |
| Password | Accepts all characters but displays them as masked dots or asterisks for security. |
| Text | Accepts all alphanumeric characters and symbols, providing the most flexibility. |