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 />.
Properties
Section titled “Properties”className?
Section titled “className?”
optionalclassName?:string
fetch?
Section titled “fetch?”
optionalfetch?: (input,init?) =>Promise<Response>
Injectable for tests and non-standard runtimes.
Parameters
Section titled “Parameters”RequestInfo | URL
RequestInit
Returns
Section titled “Returns”Promise<Response>
fieldComponents?
Section titled “fieldComponents?”
optionalfieldComponents?: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.
onError?
Section titled “onError?”
optionalonError?: (error) =>void
Called when a submission request fails. Validation failures are shown inline and don’t call this.
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”void
onSubmitted?
Section titled “onSubmitted?”
optionalonSubmitted?: (data) =>void
Called after a successful final submission.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void
style?
Section titled “style?”
optionalstyle?:CSSProperties