ComponentsUtilities

Validators

Form validators apps write again and again: codes, dates, links, passwords, IP addresses, domains, duplicates, prices. Every error has a translated message in the kit fields.

Part of @tectra-ng/utils (npm install @tectra-ng/utils, also included in tectra-ng).

Features5APIThemingAccessibility

Account

strongPassword lists what is missing, matchFields puts the error on the confirmation field, numericCode checks a one-time code.

Use at least 6 characters with upper and lower case letters and a symbol
Passwords do not match
Enter the 6-digit code

Lists

duplicate reads the taken names from a getter, so it follows the list; arraySumMax keeps the shares of a form array within 100%.

DesignBillingSupport
This value is already taken
The total must not exceed 100

Confirmation

exactValue asks to type a word before a destructive action; the button stays off until it matches.

Formats

Smaller checks: a price with two decimals above zero, time as HH:mm, a JSON object, text without control characters or tags.

Enter a price like 12.50
Enter the time as HH:mm
Enter a valid JSON object
Invalid format