Simple masked text input for phone, serial, and license formats.
MaskedInput applies lightweight masks such as 999-999, AAAA-9999, and ***-999 without adding a parser dependency.
Use A for letters, 9 for digits, and * for alphanumeric characters.
<MaskedInput aria-label="License key" mask="AAAA-9999" />import { MaskedInput } from "@froggdesign/enter-ui-react";<MaskedInput
mask="999-999"
value={phone}
onValueChange={(masked, raw) => {
setPhone(masked);
setPhoneRaw(raw);
}}
/>Use MaskedInput for short predictable formats: phone extensions, serial keys, invite codes, license keys, and support references.
Keep the mask visible through placeholder or field help text so users understand the expected format. Masks are intentionally simple and should not replace server-side validation.
mask: pattern using 9 for digits, A for letters, and * for alphanumeric characters.value, defaultValue: masked value.onValueChange: called with (maskedValue, rawValue).placeholder: defaults to the mask.MaskedInput uses .eui-masked-input classes and FroggDesign tokens for layout, state, focus, and disabled styling.