Skip to content

StepNavigation

Navigation button row for multi-step forms. Provides Previous, Next and optional Save buttons with loading state, permission gating, and fully customizable labels.

Basic Usage

Demo
Step 1 of 3

With Save Button (Last Step)

With Save

Disabled (No Permission)

No Permission

Props

Props
PropTypeDefaultDescription
showPreviousbooleantrueWhether to render the Previous button. Set to false on the first step.
canProceedbooleantrueEnables or disables the Next button. Use for step-level validation.
loadingbooleanfalsePuts all buttons in loading state. Shows spinner and loading labels.
nextLabelstring'Next'Label text for the Next/Proceed button.
previousLabelstring'Previous'Label text for the Previous button.
loadingLabelstring'Processing...'Text shown inside Next button while loading is true.
showSavebooleanfalseShow the optional Save button alongside Next. Useful on the last step.
saveLabelstring'Save'Label for the Save button.
saveLoadingLabelstring'Saving...'Text shown inside Save button while loading is true.
hasPermissionbooleantrueWhen false, disables the Save button (and Next on the last step). Use for role-based access control.

Emits

Emits
EventPayloadDescription
previousvoidEmitted when the Previous button is clicked.
nextvoidEmitted when the Next button is clicked and not disabled.
savevoidEmitted when the Save button is clicked and not disabled.

Built with VitePress