Skip to content

Navigation - AvStepper

✨ Introduction

The AvStepper component is a visual guide to show the user their progress through a series of steps

🏗️ Structure

The stepper displays:

  • all steps titles
  • a progress status showing the current step and the total number of steps
  • a stylized progress bar

🏷️ Props

NameTypeDefaultMandatoryDescription
stepsstring[]List of steps to display in the stepper
currentStepnumberIndex of the current step (starts at 0)
widthstring'100%'Width of the stepper

🔊 Events

None.

🎨 Slots

None.

🚀 Storybook demos

You can find examples of use and demo of the component on its dedicated Storybook page.

💡 Examples of use

vue
<script language="ts">
const currentStep = ref(0)
</script>

<template>
  <AvStepper
    :steps="['Step 1', 'Step 2', 'Step 3', 'Step 4']"
    :current-step="currentStep"
  />
  <AvButton
    label="-1"
    :disabled="currentStep <= 0"
    @click="currentStep--"
  />
  <AvButton
    label="+1"
    :disabled="currentStep >= 3"
    @click="currentStep++"
  />
</template>