Skip to content
TrademarkTrademark
Docs
Form Controls

SubmitButton

Updated: October 20, 2026
View on GitHub

SubmitButton takes every Button prop plus pendingLabel and pending, as on the web. Inside a Form with as="form" it calls the form's onSubmit; while the returned promise runs it shows a spinner, swaps to pendingLabel and ignores taps. See the web SubmitButton for the same component in the browser.

Outside a form, or for a submit the form does not track, set pending yourself.

API reference

Prop
Type
Default
Description
pendingLabelstringThe label while the form submits.
pendingbooleanForces the pending look.
onPress / onClick() => voidCalled before the form submits. Not called while pending.

Every other prop is Button's.

Edit this page on GitHub