Stepper
KStepper is an ordered step indicator.
- Personal information
- 2Billing details
- 3Shipping information
html
<KStepper :steps="steps" />Props
steps
An array of step objects. Each step object should have a required label property, and an optional state property.
step property takes one of the following values:
activedefaultpendingcompletederror
- Completed
- 2Active
- Pending
- Erroneous
- 5Default
vue
<template>
<KStepper :steps="steps" />
</template>
<script setup lang="ts">
const steps = ref<StepItem[]>([
{ label: 'Completed', state: 'completed' },
{ label: 'Active', state: 'active' },
{ label: 'Pending', state: 'pending' },
{ label: 'Erroneous', state: 'error' },
{ label: 'Default' }
])
</script>maxLabelWidth
The width of step labels (default is 170px). We support any valid CSS length (e.g. 25%) value.
- 1A step with a long title
- 2A step with even longer title
html
<KStepper max-label-width="20ch" :steps="steps" />hideStepNumbers
Whether to show the step numbers. Default is false.
- Personal information
- Billing details
- Shipping information
- Review
html
<KStepper hide-step-numbers :steps="steps" />