SubmitButton()function

SubmitButton({
	children = SUBMIT_CHILDREN,
	strong = true,
	color = "primary",
	full = true,
	...variants
}: SubmitButtonProps): ReactElement
ParamType
variantsSubmitButtonProps
Props for SubmitButton, a form submit button. required
Return
ReactElement
A <button type="submit"> element bound to the current form.

Submit button for a form that disables itself and shows a spinner while the form is busy.

  • Defaults to strong, full-width, primary styling and a "Save" label.

Examples

<SubmitButton>Save changes</SubmitButton>