form.validate-input
Check a text, email or number input: required, length, pattern and min/max, with GOV.UK messages.
validateInput in TypeScript
1.0.0
py rs ts
49 tests
Apache-2.0
react.form.validated-input React ^19 · TypeScript only
A text, email or number input that checks itself with form.validate-input and shows the error accessibly.
ValidatedInput in TypeScript
1.0.0
ts
14 tests
Apache-2.0
react.form.text-field React ^19 · TypeScript only
A labelled single-line text input with hint, error message, autocomplete, prefix and suffix (GOV.UK text input).
TextField in TypeScript
1.0.1
ts
14 tests
Apache-2.0
form.money-input
Read a typed amount as minor units for its currency and locale, check min/max, and format it back.
A group of 3: parseMoneyInput, formatMoneyInput, moneyInputFormat
1.0.0
py rs ts
61 tests
Apache-2.0
money.parse
Parse "£1,234.50" or "1.234,50 €" into integer minor units, strictly: no guessing, no rounding.
parseMoney in TypeScript
1.0.0
py rs ts
37 tests
Apache-2.0
react.form.money-field React ^19 · TypeScript only
A money input with its currency symbol, locale separators and min/max, read and checked by form.money-input.
MoneyField in TypeScript
1.0.0
ts
14 tests
Apache-2.0
todo.parse-tags
Read a tags box as typed, "#Home, work errands", into normalised tags: split on spaces and commas.
parseTags in TypeScript
1.0.0
py rs ts
12 tests
Apache-2.0