Function: FormSubmit()
FormSubmit(
__namedParameters):any
Defined in: composites/Form/Form.tsx:275
The primary commit button inside a Form.
A thin wrapper around Button that fixes type="submit" and
reassigns defaults so the commit-happy path is free of boilerplate:
consequence="committing" (second real Consequence callsite with a
value distinct from MenuItem's typical destructive / neutral) and
composition="primaryAction" (advertises the slot to host layout CSS).
Visual styling is inherited from Button; FormSubmit adds no chrome.
The only extra DOM signal it layers on is data-composition and
data-pending when isPending is true.
Entity = Action → same token row as Button (vars.colors.action.*).
Parameters
| Parameter | Type |
|---|---|
__namedParameters | FormSubmitProps |
Returns
any