Form / API

foldkit-form/metakit

foldkit-form/metakit — a form reading what a metakit declaration already says: the input attributes its Schema's bounds and domain types imply, and whether a guarded Transition would go through with the values entered so far, and which of its rules over several keys those values break. A subpath: the main entry imports no metakit module, so a page with a form and no metakit keeps none of it.

Namespaces

Interfaces

ConstraintOne key's declaration as Inspect.fieldSpecs reads it from the input's Schema (its bounds, literals and domain type), with the input attributes that follow…
DeclarationsA form's declarations, read once from its input Schema.
DeclaredFormWhat Declared.of reads from a form: its input Schema, what of it decodes as it stands, and one key's state as a view shows it.
DeclaredOptionsWhat Declared.of takes beside the form.
InputAttributesWhat an HTML <input> takes from a key's declaration. Each is none when the declaration says nothing about it, and type is none when the control's own type…
RuleFailureA rule over several keys of the input that the values entered so far break.