BeechCMS / @beechcms/forms-react / BeechFormProps
Interface: BeechFormProps<TValues>
Extends
UseBeechFormOptions<TValues>
Type Parameters
TValues
TValues extends Record<string, unknown> = Record<string, unknown>
Properties
apiKey?
optionalapiKey?:string
Inherited from
baseUrl?
optionalbaseUrl?:string
Inherited from
children?
optionalchildren?:ReactNode| ((form) =>ReactNode)
className?
optionalclassName?:string
clock?
optionalclock?:object
Time source for the time-trap checks. Defaults to Date.now; inject one in tests instead of faking timers.
now()
now():
number
Returns
number
Inherited from
disableAntiBot?
optionaldisableAntiBot?:boolean
Inherited from
UseBeechFormOptions.disableAntiBot
disableDraft?
optionaldisableDraft?:boolean
Inherited from
UseBeechFormOptions.disableDraft
draftTtlMs?
optionaldraftTtlMs?:number
Idle time after which a stored draft is discarded. Defaults to 24 hours.
Inherited from
UseBeechFormOptions.draftTtlMs
excludeFields?
optionalexcludeFields?:string[]
Inherited from
UseBeechFormOptions.excludeFields
excludeFromDraft?
optionalexcludeFromDraft?:string[]
Field aliases never written to the local draft, on top of every branch classified above public.
Inherited from
UseBeechFormOptions.excludeFromDraft
honeypotField?
optionalhoneypotField?:string
Inherited from
UseBeechFormOptions.honeypotField
includeFields?
optionalincludeFields?:string[]
Inherited from
UseBeechFormOptions.includeFields
initialValues?
optionalinitialValues?:Partial<TValues>
Inherited from
UseBeechFormOptions.initialValues
locale?
optionallocale?:Locale
Inherited from
onError?
optionalonError?: (error) =>void
Parameters
error
details?
unknown
message
string
status
number
Returns
void
Inherited from
onSuccess?
optionalonSuccess?: (result) =>void
Parameters
result
data
TValues
id?
string
Returns
void
Inherited from
seed
seed:
string|FormSeedSchema
Inherited from
translations?
optionaltranslations?:Partial<FormTranslations>