Skip to content

Stepper ​

te-stepper walks through a sequence of steps. Completed steps are marked automatically.

Basic ​


  • 1Cart
  • 2Address
  • 3Payment
Pick your items.
vue
<te-stepper v-model="step" :steps="[{ label: 'Cart' }, { label: 'Address' }, { label: 'Payment' }]">
  <template #step-1>Pick your items.</template>
  <template #step-2>Where should it go?</template>
  <template #step-3>How are you paying?</template>
</te-stepper>

Step ​

ts
interface Step {
  label?: string;
  disabled?: boolean;   // the step cannot be clicked
}

Props ​

PropTypeDefaultDescription
modelValuenumber0Index of the active step. Supports v-model.
stepsStep[]— (required)Between 1 and 12 steps.

Events ​

EventPayloadDescription
update:modelValuenumberThe active step changed.

Slots ​

SlotPropsDescription
step-N—Panel of the Nth step, starting at step-1.
icon{ step, index }Replaces the number in the bubble.
label{ step, index }Replaces the step label.