Registry

What createRegistry returns: createForm, Fields, formHook and extendRegistry.

What createRegistry returns: TanStack's form hook for the registered widgets and form components, a way to turn a form config into a form component, a way to render a config's fields into a form or field group of one's own, and a way to extend the registry. Projects refer to it as typeof registry.

Type parameters

NameDescription
TWidgetsThe registered widgets by name.
TFormComponentsThe registered form components by name.
TStructureThe filled structure slots.

Example

export const registry = createRegistry({ fieldContext, formContext, widgets: { text: TextField } })

type AppRegistry = typeof registry

Members

Prop

Type

See also