stepper

Stepper

Numbered steps through a flow such as checkout, marking done, current and upcoming, joined by a line that fills as each step is done; spans its row, and on a narrow screen names only the current step.

Parts

PartFileDoes
StepperStepper.vueGroups all parts of the stepper, which guides the user through a sequence of steps.
StepperDescriptionStepperDescription.vueExplains in a short line what happens in a step.
StepperIndicatorStepperIndicator.vueMarks the number or progress state of a step.
StepperItemStepperItem.vueGroups the trigger, title and description of one step in the stepper.
StepperSeparatorStepperSeparator.vueJoins one step of the stepper to the next with a line that fills once the step is done.
StepperTitleStepperTitle.vueNames a step of the stepper.
StepperTriggerStepperTrigger.vueLets the user jump to its step.

Anatomy

<Stepper>
  <StepperItem>
    <StepperTrigger>
      <StepperIndicator />
      <StepperTitle />
      <StepperDescription />
    </StepperTrigger>
    <StepperSeparator />
  </StepperItem>
</Stepper>

Styling

All of Stepper’s styles live in stepper.json. New to styling in Frontic UI? How styling works →

Install

npm packages
@vueuse/core
class-variance-authority
reka-ui

API reference

Stepper.vue

Groups all parts of the stepper, which guides the user through a sequence of steps.

Props 9

PropTypeDefault
defaultValuenumber1
orientationDataOrientation'horizontal'
dirDirection—
modelValuenumber—
linearbooleantrue
asChildbooleanfalse
asAsTag | Component—
classClassValue—
statusLabel((step: number, total: number) => string)`Step ${step} of ${total}`

Events 1

EventPayload
update:modelValuepayload: number | undefined

Slots 1

SlotSlot props
default{ modelValue: number | undefined; totalSteps: number; isNextDisabled: boolean; isPrevDisabled: boolean; isFirstStep: boolean; isLastStep: boolean; goToStep: (step: number) => void; nextStep: () => void; prevStep: () => void; hasNext: () => boolean; hasPrev: () => boolean; }

Data attributes 4

Data attributeValues
data-horizontal—
data-linear—
data-orientation'vertical' | 'horizontal'
data-vertical—

Recipe stepper 1 group

Recipe stepper-status 1 group

StepperDescription.vue

StepperIndicator.vue

StepperItem.vue

StepperSeparator.vue

StepperTitle.vue

StepperTrigger.vue
Stepper
State