Class TextTransform
Defines the text case transformation options for the SfOtpInput component.
Inheritance
Namespace: Syncfusion.Blazor.Inputs
Assembly: Syncfusion.Blazor.dll
Syntax
public sealed class TextTransform : Enum
Remarks
This enumeration controls how the text case is automatically transformed as users type, providing consistency in OTP formatting regardless of how users enter the characters.
Fields
Lowercase
Automatically converts all entered text to lowercase letters.
Declaration
public const TextTransform Lowercase
Field Value
Type |
---|
TextTransform |
Remarks
This option ensures all text input is in lowercase, which can be useful for systems that are case-sensitive and expect lowercase input, or for maintaining visual consistency.
None
No case transformation is applied; text appears exactly as entered by the user.
Declaration
public const TextTransform None
Field Value
Type |
---|
TextTransform |
Remarks
This is the default behavior where user input is preserved without any modification. Use this when the OTP system is case-sensitive or when you want to preserve user input exactly.
Uppercase
Automatically converts all entered text to uppercase letters.
Declaration
public const TextTransform Uppercase
Field Value
Type |
---|
TextTransform |
Remarks
This is useful for OTP systems that expect uppercase input or when you want to ensure consistent formatting. Lowercase letters typed by users will be automatically converted.