Every example is a complete Vue file. Copy it into an app that has the registry installed, or open it in StackBlitz.
A setup wizard
Done steps show a check, so state is not colour alone.
Step 2 of 0
StepperWizard.vue
<script setup lang="ts">
import { Check } from '@lucide/vue'
import { ref } from 'vue'
import { Button } from '@/components/ui/button'
import {
Stepper,
StepperDescription,
StepperIndicator,
StepperItem,
StepperSeparator,
StepperTitle,
StepperTrigger,
} from '@/components/ui/stepper'
const steps = [
{ step: 1, title: 'Connect store', description: 'Sign in to the online store' },
{ step: 2, title: 'Map fields', description: 'Match order fields to the ERP' },
{ step: 3, title: 'Schedule', description: 'Choose how often to sync' },
]
const current = ref(2)
</script>
<template>
<div class="flex w-full flex-col gap-(--bh-space-300)">
<Stepper v-model="current" aria-label="Set up order sync" class="w-full">
<StepperItem
v-for="item in steps"
:key="item.step"
v-slot="{ state }"
:step="item.step"
class="relative flex-1 flex-col items-center"
>
<StepperSeparator
v-if="item.step !== steps[steps.length - 1].step"
class="absolute top-[calc(var(--bh-space-050)+var(--bh-size-control-default)/2)] left-[calc(50%+var(--bh-size-control-default))] right-[calc(-50%+var(--bh-size-control-default))]"
/>
<StepperTrigger>
<StepperIndicator>
<Check v-if="state === 'completed'" aria-hidden="true" />
<span v-else>{{ item.step }}</span>
</StepperIndicator>
<StepperTitle>{{ item.title }}</StepperTitle>
<StepperDescription>{{ item.description }}</StepperDescription>
</StepperTrigger>
</StepperItem>
</Stepper>
<!-- Wizard buttons on the right, the primary action last (D10). -->
<div class="flex justify-end gap-(--bh-space-100)">
<Button variant="outline" :disabled="current === 1" @click="current--">Back</Button>
<Button v-if="current < steps.length" @click="current++">Next</Button>
<Button v-else>Start sync</Button>
</div>
</div>
</template>Vertical, in order
A step opens only after the ones before it are done.
Step 2 of 0
StepperVertical.vue
<script setup lang="ts">
import { Check } from '@lucide/vue'
import {
Stepper,
StepperDescription,
StepperIndicator,
StepperItem,
StepperSeparator,
StepperTitle,
StepperTrigger,
} from '@/components/ui/stepper'
// linear (the default): a step opens only after the ones before it are done.
const steps = [
{ step: 1, title: 'Create API key', description: 'Done on 10 Nov 2026' },
{ step: 2, title: 'Add webhook', description: 'The ERP sends new invoices here' },
{ step: 3, title: 'Send a test event', description: 'Check that one invoice arrives' },
]
</script>
<template>
<Stepper :default-value="2" orientation="vertical" aria-label="Connect the ERP" class="flex-col items-start">
<StepperItem
v-for="item in steps"
:key="item.step"
v-slot="{ state }"
:step="item.step"
class="relative w-full items-start"
>
<StepperSeparator
v-if="item.step !== steps[steps.length - 1].step"
class="absolute top-[calc(var(--bh-size-control-default)+var(--bh-space-100))] bottom-0 left-[calc(var(--bh-space-050)+var(--bh-size-control-default)/2)]"
/>
<StepperTrigger class="flex-row items-start text-start">
<StepperIndicator>
<Check v-if="state === 'completed'" aria-hidden="true" />
<span v-else>{{ item.step }}</span>
</StepperIndicator>
<span class="flex flex-col gap-(--bh-space-025) pb-(--bh-space-300)">
<StepperTitle>{{ item.title }}</StepperTitle>
<StepperDescription>{{ item.description }}</StepperDescription>
</span>
</StepperTrigger>
</StepperItem>
</Stepper>
</template>