Skip to content

BeechCMS


BeechCMS / @beechcms/forms-react / BeechFormProps

Interface: BeechFormProps<TValues> ​

Extends ​

Type Parameters ​

TValues ​

TValues extends Record<string, unknown> = Record<string, unknown>

Properties ​

apiKey? ​

optional apiKey?: string

Inherited from ​

UseBeechFormOptions.apiKey


baseUrl? ​

optional baseUrl?: string

Inherited from ​

UseBeechFormOptions.baseUrl


children? ​

optional children?: ReactNode | ((form) => ReactNode)


className? ​

optional className?: string


clock? ​

optional clock?: 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 ​

UseBeechFormOptions.clock


disableAntiBot? ​

optional disableAntiBot?: boolean

Inherited from ​

UseBeechFormOptions.disableAntiBot


disableDraft? ​

optional disableDraft?: boolean

Inherited from ​

UseBeechFormOptions.disableDraft


draftTtlMs? ​

optional draftTtlMs?: number

Idle time after which a stored draft is discarded. Defaults to 24 hours.

Inherited from ​

UseBeechFormOptions.draftTtlMs


excludeFields? ​

optional excludeFields?: string[]

Inherited from ​

UseBeechFormOptions.excludeFields


excludeFromDraft? ​

optional excludeFromDraft?: string[]

Field aliases never written to the local draft, on top of every branch classified above public.

Inherited from ​

UseBeechFormOptions.excludeFromDraft


honeypotField? ​

optional honeypotField?: string

Inherited from ​

UseBeechFormOptions.honeypotField


includeFields? ​

optional includeFields?: string[]

Inherited from ​

UseBeechFormOptions.includeFields


initialValues? ​

optional initialValues?: Partial<TValues>

Inherited from ​

UseBeechFormOptions.initialValues


locale? ​

optional locale?: Locale

Inherited from ​

UseBeechFormOptions.locale


onError? ​

optional onError?: (error) => void

Parameters ​

error ​
details? ​

unknown

message ​

string

status ​

number

Returns ​

void

Inherited from ​

UseBeechFormOptions.onError


onSuccess? ​

optional onSuccess?: (result) => void

Parameters ​

result ​
data ​

TValues

id? ​

string

Returns ​

void

Inherited from ​

UseBeechFormOptions.onSuccess


seed ​

seed: string | FormSeedSchema

Inherited from ​

UseBeechFormOptions.seed


translations? ​

optional translations?: Partial<FormTranslations>

Inherited from ​

UseBeechFormOptions.translations