Static Mask
Masks with a fixed pattern, the most common kind. Learn the mask characters and how to format phone numbers, dates and documents.
Optional Mask
Use square brackets to make parts of a mask optional, so one pattern accepts phone numbers with or without an area code.
Dynamic Mask
Use curly braces to repeat parts of a mask, for inputs whose length varies such as emails and variable-length numbers.
Alias Mask
Ready-made masks for dates, currency, email, CPF, CNPJ and more. Pass the alias name instead of writing the pattern by hand.
Alternator Mask
Accept several patterns in one field with the pipe character, so a single input matches any of the masks you list.
Preprocessing Mask
Define the mask as a function to pick the pattern at runtime, for conditional logic or masks loaded dynamically.