WHAT YOU'LL LEARN
  • What is exported from webiny/admin/form?
  • How to import and use each exported item?

Overview
anchor

This page documents everything exported from webiny/admin/form. Import any of the items below directly from this path in your Webiny extensions.

Components
anchor

Bind
anchor

Function — imported from webiny/admin/form

Form
anchor

Constant — imported from webiny/admin/form

UnsetOnUnmount
anchor

Constant — imported from webiny/admin/form

Validation
anchor

Class — imported from webiny/admin/form

Main class of Validation library. Exported as a singleton instance, it offers methods for sync/async data validation and overwriting or adding new validators.

@class Validation @example import { validation } from ‘@webiny/validation’;

// validation is a preconfigured instance of Validation class. // From here you can either add new validators or use it as-is.

ValidationError
anchor

Class — imported from webiny/admin/form

This class is used by validators to throw an error when value validation fails.

Hooks
anchor

useBind
anchor

Constant — imported from webiny/admin/form

useBindPrefix
anchor

Function — imported from webiny/admin/form

useForm
anchor

Constant — imported from webiny/admin/form

useGenerateSlug
anchor

Function — imported from webiny/admin/form

This hook is designed to be used with the useForm hook. When generateSlug is called, it will generate a slug using the from form field, and set it into the to form field. @param form @param from @param to

Types
anchor

FormApi
anchor

Type — imported from webiny/admin/form

FormOnSubmit
anchor

Type — imported from webiny/admin/form

GenericFormData
anchor

Type — imported from webiny/admin/form

Other
anchor

validation
anchor

Constant — imported from webiny/admin/form