MaskedInput Component

A structured input component with automatic masking and formatting.

Phone Number (US Format)

Automatically formats phone numbers with (000) 000-0000 pattern.

Raw value: (empty)

International Phone Number

International format with country code.

Raw value: (empty)

Social Security Number

SSN with 000-00-0000 format.

Raw value: (empty)

Credit Card Number

16-digit credit card with spacing.

Raw value: (empty)

Date Input

Date in MM/DD/YYYY format.

Raw value: (empty)

Time Input

Time in HH:MM format.

Raw value: (empty)

ZIP Code

Standard 5-digit ZIP code.

Raw value: (empty)

ZIP+4 Code

Extended ZIP code with 4-digit extension.

Raw value: (empty)

Indonesian National ID (KTP)

Indonesian National Identity Card (Kartu Tanda Penduduk) - 16 digits format.

Raw value: (empty)

💡 Format: Province.Regency.District.BirthDate.Sequence

Custom Mask - Product Code

Custom pattern: AA-0000 (two letters, dash, four digits).

Raw value: (empty)

Custom Mask - License Plate

Custom pattern: 000-AAA (three digits, dash, three letters).

Raw value: (empty)

Disabled State

Input with disabled state.

Readonly State

Input in readonly mode - focusable but not editable.

Without Mask Display

ShowMask set to false - only shows characters as you type.

Raw value: (empty)

Form Validation

Integration with EditForm and data annotations.

Error State

Input with error visualization using aria-invalid.

This phone number is invalid

Required State

Input with HTML5 required validation.

An unhandled error has occurred. Reload 🗙