Skip to main content

Interface: FormSubmitProps

Defined in: composites/Form/Form.tsx:237

Props for the FormSubmit component.

Wraps Button — inherits every Button prop except type (always "submit") and reassigns semantic defaults. consequence, composition, and isPending are surfaced explicitly because their defaults differ from Button's.

Extends

Properties

composition?

optional composition?: "primaryAction" | "secondaryAction" | "dismissAction"

Defined in: composites/Form/Form.tsx:250

Composition slot within the Form. Emitted as data-composition for host CSS / tests / future composites.

Default

'primaryAction'

Overrides

Omit.composition


consequence?

optional consequence?: "neutral" | "committing" | "destructive"

Defined in: composites/Form/Form.tsx:244

Effect on state. Emitted as data-consequence; not used for coloring (visual distinction, if any, is a theme / host-CSS concern — same contract as MenuItem).

Default

'committing'

Overrides

Omit.consequence


data-scope?

optional data-scope?: string

Defined in: components/Button/Button.tsx:64

Data scope identifier for the button.

Default

'button'

Inherited from

ButtonProps.data-scope


evaluation?

optional evaluation?: "primary" | "secondary" | "accent" | "muted" | "negative"

Defined in: components/Button/Button.tsx:37

Semantic emphasis.

Default

'primary'

Inherited from

Omit.evaluation


isPending?

optional isPending?: boolean

Defined in: composites/Form/Form.tsx:257

Whether the form is currently submitting. When true, the button is disabled to prevent double-submit and emits data-pending for host CSS (spinner, skeleton). Host-controlled — fsl-ui does not own the submission lifecycle.

Overrides

Omit.isPending