Skip to content

EbitexFormProps

@ebitex/forms-sdk/react — the rendering half.

Nothing here takes an API key, deliberately: these components run in a respondent’s browser and submit to the form’s own public, anonymous endpoint. Fetch the definition server-side with createFormsClient from the root entry point and pass the result to <EbitexForm />.

optional className?: string


optional fetch?: (input, init?) => Promise<Response>

Injectable for tests and non-standard runtimes.

MDN Reference

RequestInfo | URL

RequestInit

Promise<Response>


optional fieldComponents?: FieldComponents

Replace the component used for one or more field types. Anything not overridden keeps its default, so this is a per-field escape hatch rather than an all-or-nothing takeover — override Input alone and your Choice fields still render normally.


form: SdkForm

A form definition from createFormsClient(...).getForm(...), fetched on your server.


optional onError?: (error) => void

Called when a submission request fails. Validation failures are shown inline and don’t call this.

unknown

void


optional onSubmitted?: (data) => void

Called after a successful final submission.

SubmissionData

void


optional style?: CSSProperties