FormActions

A horizontal action bar for form submit and cancel buttons, separated by a top border. Supports simple right-aligned buttons or split primary/secondary layout.

Simple Actions

<FormActions>
  <Button variant="outline">Cancel</Button>
  <Button>Save changes</Button>
</FormActions>

Split Layout

<FormActions>
  <FormActionsSecondary>
    <Button variant="destructive">Delete account</Button>
  </FormActionsSecondary>
  <FormActionsPrimary>
    <Button variant="outline">Cancel</Button>
    <Button>Save changes</Button>
  </FormActionsPrimary>
</FormActions>

API Reference

FormActions

PropTypeDefaultDescription
classNamestringAdditional CSS classes to apply to the form actions container.
children
required
React.ReactNodeAction buttons. When using sub-components (FormActionsPrimary / FormActionsSecondary), buttons are split left and right. Otherwise, buttons are right-aligned.

FormActionsPrimary

PropTypeDefaultDescription
classNamestringAdditional CSS classes for the primary actions container.
children
required
React.ReactNodePrimary action buttons (e.g., Save, Submit), aligned right.

FormActionsSecondary

PropTypeDefaultDescription
classNamestringAdditional CSS classes for the secondary actions container.
children
required
React.ReactNodeSecondary action buttons (e.g., Delete, Reset), aligned left.