Skip to main content
The props TapForm takes.

Type Parameters

T

T

Properties

busy?

Marks the submit button busy and disables it while a submit is in flight.

cancelLabel?

Defaults to Cancel.

onCancel?

Renders a cancel button next to submit, and is called by it.

Returns

void

onSubmit

Called with the cleaned value once validation passes.

Parameters

value
T

Returns

void | Promise<void>

schema

The object schema to render, one control per declared property.

submitLabel?

Defaults to Submit.

value?

The value the fields start at; later changes to it do not reset the form.