Skip to main content

Function: FormActions()

FormActions(__namedParameters): Element

Defined in: packages/forms/src/FormActions.tsx:46

FormActions is a layout container for form action buttons such as Submit, Cancel, and Reset. It renders a flex row with consistent spacing.

Use align to control horizontal button placement ('left', 'center', or 'right'). Use sticky to keep the action bar visible while the user scrolls through a long form.

Parameters

__namedParameters

FormActionsProps

Returns

Element

Example

<Form.Actions align="right" sticky>
<Button variant="secondary" onClick={onCancel}>Cancel</Button>
<Button type="submit">Save</Button>
</Form.Actions>