On this page

Stepper

Install, props and the parts Stepper is built from.

Install

Run this in the app, after shadcn-vue init and the Beehexa theme (Button › Code):

npx shadcn-vue@latest add https://beehexa.design/r/stepper.json

Use

<script setup lang="ts">
import { ref } from 'vue'
import { Stepper, StepperIndicator, StepperItem, StepperSeparator, StepperTitle, StepperTrigger } from '@/components/ui/stepper'
const step = ref(1)
</script>

<template>
  <div>
    <Stepper v-model="step">
      <StepperItem v-for="(title, i) in ['Store', 'Channels', 'Review']" :key="title" :step="i + 1">
        <StepperTrigger><StepperIndicator>{{ i + 1 }}</StepperIndicator><StepperTitle>{{ title }}</StepperTitle></StepperTrigger>
        <StepperSeparator v-if="i < 2" />
      </StepperItem>
    </Stepper>
  </div>
</template>

Props

Part Prop Values Notes
Stepper v-model, orientation, linear number, horizontal/vertical, boolean linear: steps open in order
StepperItem step, completed, disabled number, boolean

Built on

reka-ui StepperRoot, as the shadcn-vue Stepper.