import { validateInput } from "#fune/form.validate-input@^1";
Suites · forms
Verified forms: inputs, address, money, dates and file uploads
Accessible React form components whose rules are pure functions in every language: validated inputs, UK and international addresses, money, date pickers and file uploads, checked the same way in the browser and on the server.
43 capabilities (17 core, 26 optional) and 10 gaps, in build order. Put each line in the file that calls it, then fune build.
The components are React 19 and TypeScript only; each one's check (form.*) is in TypeScript, Python and Rust, so validate the submission on the server with the same rules rather than trusting the browser.
form.address checks the shape of an address and its postcode, not that it exists: a lookup against Royal Mail's PAF or another address service is network work and yours.
The components are React 19 and TypeScript only; the helpers (form.*) and the validation they pair with are in every language.
Core coverage: 63%
17 of 27 needs met by verified capabilities. The needs are this suite's 17 core members and its 10 named gaps; a core member counts when a version of it is verified (by the sandbox, or the registry's seed) and not yanked, and a gap never counts. Optional members are not needs.
Baseline: a hand-written app with no suite meets 0 of the same 27. Method fune-coverage/1, computed 2026-11-22T20:48:32.567Z.
1. Validated inputs
Text, email and number inputs whose required, length, pattern and min/max rules are data, checked in the browser and again on the server.
import { ValidatedInput } from "#fune/react.form.validated-input@^1";
import { matchesPattern } from "#fune/text.pattern-match@^1";
2. Addresses
A UK address form, or an international one with each country's labels and postcode rules.
import { validateAddress, addressFormat } from "#fune/form.address@^1";
import { AddressFields } from "#fune/react.form.address-fields@^1";
import { validateUkPostcode } from "#fune/validation.uk-postcode@^2";
- address-lookup Finding the address from a postcode (Royal Mail PAF or a lookup API) is network work and yours.
3. Money
Amounts typed the way the person's locale writes them, held as integer minor units.
import { parseMoneyInput, formatMoneyInput, moneyInputFormat } from "#fune/form.money-input@^1";
import { MoneyField } from "#fune/react.form.money-field@^1";
import { formatMoney } from "#fune/money.format@^1";
4. Dates
Dates chosen in the browser's picker, or typed into day, month and year, as ISO dates with no time zone involved.
import { validateIsoDate } from "#fune/form.iso-date@^1";
import { DateField } from "#fune/react.form.date-field@^1";
import { validateDateParts } from "#fune/form.date-parts@^1";
import { DateInput } from "#fune/react.form.date-input@^1";
5. File uploads
Choose files in the browser, check them, and upload straight to object storage.
import { validateFiles, acceptsFile, formatFileSize } from "#fune/form.file-check@^1";
import { FileUpload } from "#fune/react.form.file-upload@^1";
import { signUpload, signDownload } from "#fune/storage.signed-url@^1";
- upload-progress Progress bars, resumable and chunked uploads, and retrying a failed upload are yours.
- upload-scanning Virus scanning and checking what a file really contains (not just its name and type) are yours.
6. Errors
Tell people what to fix, and take them to it.
import { errorSummaryItems, ErrorSummary } from "#fune/react.form.error-summary@^1";
import { initialFormState, formReducer, visibleErrors } from "#fune/form.state@^1";
7. Fields from forms-ui
Labelled, hinted inputs with their errors wired up for screen readers (React, TypeScript only).
import { fieldIds, FormField } from "#fune/react.form.form-field@^1";
import { TextField } from "#fune/react.form.text-field@^1";
import { Button } from "#fune/react.form.button@^1";
import { Textarea } from "#fune/react.form.textarea@^1";
import { characterCount } from "#fune/form.character-count@^1";
import { Select } from "#fune/react.form.select@^1";
import { passwordChecklist, PasswordField } from "#fune/react.form.password-field@^1";
8. Choices from forms-ui
Questions answered by picking.
import { RadioGroup } from "#fune/react.form.radio-group@^1";
import { toggleValue, CheckboxGroup } from "#fune/react.form.checkbox-group@^1";
import { Checkbox } from "#fune/react.form.checkbox@^1";
import { Fieldset } from "#fune/react.form.fieldset@^1";
9. Styles from forms-ui
A default look you can theme.
import { formStyles } from "#fune/react.form.styles@^1";
10. Contact details from validation-basics
Check and normalise a person's contact details before storing them.
import { isEmail } from "#fune/validation.email@^1";
import { validatePhoneE164 } from "#fune/validation.phone-e164@^2";
import { normaliseName } from "#fune/text.normalise-name@^1";
import { normaliseEmail } from "#fune/auth.normalise-email@^1";
11. Bank details from validation-basics
Check payee and customer bank details before money moves.
import { isIban } from "#fune/validation.iban@^1";
import { validateBic } from "#fune/validation.bic@^1";
import { validateUkSortCodeAccount } from "#fune/validation.uk-sort-code-account@^3";
import { parseUkModulusTable } from "#fune/validation.uk-modulus-table@^1";
12. Identifiers and check digits from validation-basics
Catch mistyped reference numbers by their check digits.
import { isLuhn } from "#fune/validation.luhn@^1";
import { validateUkCompanyNumber } from "#fune/validation.uk-company-number@^2";
import { validateLei } from "#fune/validation.lei@^1";
import { validateGtin } from "#fune/validation.gtin@^1";
13. Displaying sensitive values from validation-basics
Show stored identifiers without exposing them.
import { mask } from "#fune/text.mask@^1";
Gaps
What this kind of app usually needs that Functional Weave does not have yet: write these yourself, or use a service.
- submission Posting the form, CSRF protection and putting the server's errors back into the fields.
- rich-pickers Custom calendar widgets, date ranges, and searchable country or currency pickers.
- other-frameworks Vue, Svelte, Angular or React Native components: only React is covered.
- multi-step-flows Multi-page journeys: routing between steps, check-your-answers pages and saving progress.
- autocomplete Autocomplete or combobox inputs (address finder, country picker).
- email-deliverability Whether a mailbox exists (MX lookups, a confirmation email): validation.email checks the syntax only.
- vocalink-data The Vocalink modulus tables themselves: download them from Pay.UK under its terms; caps parses them but does not ship them.