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
| Name | Description |
|---|---|
TWidgets | The registered widgets by name. |
TFormComponents | The registered form components by name. |
TStructure | The filled structure slots. |
Example
export const registry = createRegistry({ fieldContext, formContext, widgets: { text: TextField } })
type AppRegistry = typeof registryMembers
Prop
Type