alexa
menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Search Results for

    Show / Hide Table of Contents

    Enum InputType

    Specifies the input type for TextBox components, determining the data format, validation behavior, and browser-specific features.

    Namespace: Syncfusion.Blazor.Inputs
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public enum InputType
    Remarks

    Different input types provide specialized functionality including:

    • Format validation (email, URL patterns)
    • Virtual keyboard optimization on mobile devices
    • Browser-specific UI enhancements (password masking, number steppers)
    • Accessibility improvements for screen readers
    • Built-in validation messages and constraints
    Choose the appropriate input type to ensure optimal user experience and data integrity.
    Examples

    Setting different input types:

    <SfTextBox Type="InputType.Email" Placeholder="Enter email address"></SfTextBox>
    <SfTextBox Type="InputType.Password" Placeholder="Enter password"></SfTextBox>

    Fields

    Name Description
    Email

    Email address input with built-in validation for proper email format and optimized virtual keyboard on mobile devices.

    Number

    Numeric input with built-in number validation and spinner controls for incrementing/decrementing values.

    Password

    Password input where characters are visually masked for security, preventing shoulder surfing and maintaining privacy.

    Search

    Search input optimized for search queries with enhanced styling and potential search-specific browser features.

    Tel

    Telephone number input with specialized virtual keyboard layout and potential format validation for phone numbers.

    Text

    Standard single-line text input accepting any alphanumeric characters and symbols without format restrictions.

    URL

    URL input with validation for proper web address format and optimized virtual keyboard for URL entry.

    In this article
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved