.NET MAUI OTP Input (SfOtpInput) Skill
The OTP Input is a specialized user interface component for collecting one-time passwords (OTPs) in authentication workflows. This skill provides comprehensive guidance for implementing OTP Input controls in .NET MAUI applications with proper configuration, styling, event handling, and validation.
When to Use This Skill
Use this skill when you need to:
- Build authentication flows — Implement SMS or email-based OTP verification systems
- Create multi-step verification — Develop secure login processes requiring one-time passwords
- Design password reset flows — Build secure account recovery with OTP confirmation
- Implement account security — Add two-factor authentication (2FA) with time-limited codes
- Collect structured numeric/alphanumeric input — Use OTP Input for any fixed-length code entry
- Customize input appearance — Apply different styling modes (Outlined, Filled, Underlined) to match app design
- Handle input validation — Real-time validation and completion detection for OTP codes
- Support accessibility — Ensure keyboard navigation and screen reader compatibility
Keywords that should trigger this skill: OTP, one-time password, authentication, verification code, SMS verification, email verification, 2FA, two-factor authentication, OtpInput, SfOtpInput, security verification, code entry, phone verification, MAUI input
Component Overview
Key Features:
- Input Types — Number (numeric-only), Text (alphanumeric), Password (hidden) modes
- Styling Modes — Outlined (bordered), Filled (background color), Underlined (underline only) visual variants
- Configurable Length — Set the number of input fields (e.g., 4-digit, 6-digit codes)
- Separator Support — Add visual separators between input fields for clarity
- Value Binding — Retrieve and set OTP values programmatically
- Event Handling — ValueChanged event for real-time input monitoring and validation
- Accessibility — Keyboard navigation and screen reader support for inclusive design
Documentation and Navigation Guide
Getting Started
📄 Read: references/getting-started.md
- Installation and NuGet package setup
- Handler registration in MauiProgram.cs
- Basic OTP Input implementation
- Setting initial values and field length
- XAML and C# implementation patterns
Input Types
📄 Read: references/input-types.md
- Number type (default, numeric-only codes)
- Text type (alphanumeric OTP codes)
- Password type (hidden/masked input for privacy)
- Choosing the right type for your use case
- Type conversion and switching behavior
Styling Modes
📄 Read: references/styling-modes.md
- Outlined mode (bordered fields)
- Filled mode (background-filled fields)
- Underlined mode (underline-only fields)
- Styling mode selection guide
- Visual appearance comparison
Features and Configuration
📄 Read: references/features-and-configuration.md
- Length property (number of input fields)
- Separator configuration (visual spacing)
- Value retrieval and binding
- Disabled state handling
- Focus and cursor management
- Multi-platform considerations
Events and Validation
📄 Read: references/events-and-validation.md
- ValueChanged event handling and event args
- Real-time input validation patterns
- OTP completion detection
- Error handling and recovery
- Input sanitization best practices
- Performance optimization tips
1---2name: syncfusion-maui-toolkit-otp-input3description: Implement OTP Input controls in .NET MAUI applications for authentication flows. Covers input types (Number, Text, Password), styling modes (Outlined, Filled, Underlined), event handling, value binding, validation patterns, and accessibility. Use this skill when building SMS/email OTP verification, multi-step authentication, or secure login forms.4---5
6# .NET MAUI OTP Input (SfOtpInput) Skill
7
8The [OTP Input](https://help.syncfusion.com/cr/maui-toolkit/Syncfusion.Maui.Toolkit.OtpInput.SfOtpInput.html) is a specialized user interface component for collecting one-time passwords (OTPs) in authentication workflows. This skill provides comprehensive guidance for implementing OTP Input controls in .NET MAUI applications with proper configuration, styling, event handling, and validation.
9
10## When to Use This Skill
11
12Use this skill when you need to:
13
14- **Build authentication flows** — Implement SMS or email-based OTP verification systems
15- **Create multi-step verification** — Develop secure login processes requiring one-time passwords
16- **Design password reset flows** — Build secure account recovery with OTP confirmation
17- **Implement account security** — Add two-factor authentication (2FA) with time-limited codes
18- **Collect structured numeric/alphanumeric input** — Use OTP Input for any fixed-length code entry
19- **Customize input appearance** — Apply different styling modes (Outlined, Filled, Underlined) to match app design
20- **Handle input validation** — Real-time validation and completion detection for OTP codes
21- **Support accessibility** — Ensure keyboard navigation and screen reader compatibility
22
23**Keywords that should trigger this skill:** OTP, one-time password, authentication, verification code, SMS verification, email verification, 2FA, two-factor authentication, OtpInput, SfOtpInput, security verification, code entry, phone verification, MAUI input
24
25## Component Overview
26
27**Key Features:**
28- **Input Types** — Number (numeric-only), Text (alphanumeric), Password (hidden) modes
29- **Styling Modes** — Outlined (bordered), Filled (background color), Underlined (underline only) visual variants
30- **Configurable Length** — Set the number of input fields (e.g., 4-digit, 6-digit codes)
31- **Separator Support** — Add visual separators between input fields for clarity
32- **Value Binding** — Retrieve and set OTP values programmatically
33- **Event Handling** — ValueChanged event for real-time input monitoring and validation
34- **Accessibility** — Keyboard navigation and screen reader support for inclusive design
35
36## Documentation and Navigation Guide
37
38### Getting Started
39📄 **Read:** [references/getting-started.md](references/getting-started.md)
40- Installation and NuGet package setup
41- Handler registration in MauiProgram.cs
42- Basic OTP Input implementation
43- Setting initial values and field length
44- XAML and C# implementation patterns
45
46### Input Types
47📄 **Read:** [references/input-types.md](references/input-types.md)
48- Number type (default, numeric-only codes)
49- Text type (alphanumeric OTP codes)
50- Password type (hidden/masked input for privacy)
51- Choosing the right type for your use case
52- Type conversion and switching behavior
53
54### Styling Modes
55📄 **Read:** [references/styling-modes.md](references/styling-modes.md)
56- Outlined mode (bordered fields)
57- Filled mode (background-filled fields)
58- Underlined mode (underline-only fields)
59- Styling mode selection guide
60- Visual appearance comparison
61
62### Features and Configuration
63📄 **Read:** [references/features-and-configuration.md](references/features-and-configuration.md)
64- Length property (number of input fields)
65- Separator configuration (visual spacing)
66- Value retrieval and binding
67- Disabled state handling
68- Focus and cursor management
69- Multi-platform considerations
70
71### Events and Validation
72📄 **Read:** [references/events-and-validation.md](references/events-and-validation.md)
73- ValueChanged event handling and event args
74- Real-time input validation patterns
75- OTP completion detection
76- Error handling and recovery
77- Input sanitization best practices
78- Performance optimization tips