Back to Vuetify

Steppers

packages/docs/src/pages/en/components/steppers.md

4.1.64.0 KB
Original Source

Steppers

The v-stepper component displays progress through numbered steps.

<PageFeatures />

Usage

A stepper can be used for a multitude of scenarios, including shopping carts, record creation and more.

<ExamplesUsage name="v-stepper" /> <PromotedEntry />

::: warning

Due to the massive differences in display and functionality between horizontal and vertical steppers, the vertical property is moving to a new component v-stepper-vertical.

:::

API

ComponentDescription
v-stepperPrimary Component
v-stepper-actionsActions for stepper
v-stepper-headerContainer for stepper items
v-stepper-itemPrimary Component
v-stepper-windowWindow container for stepper window items
v-stepper-window-itemItems for stepper window
<ApiInline hide-links />

Anatomy

The recommended placement of elements inside of v-stepper is:

  • Place v-stepper-header on top
  • Place v-stepper-window or other forms of content below the stepper header
  • Place v-stepper-actions after the stepper window

Element / AreaDescription
1. ContainerThe Stepper container holds all v-stepper components and is composed of 3 major parts: v-stepper-header, v-stepper-window, and v-stepper-actions.
2. HeaderThe header is the container for the v-stepper-item components.
3. WindowThe window is the container for the v-stepper-window-item components.
4. Actions (optional)A content area that typically contains one or more v-btn components

Guide

The v-stepper component provides a linear progression process for gathering and displaying information to a user, similar to a form wizard.

Props

The v-stepper component has multiple props to customize its visual appearance and functionality.

Non editable steps

A basic stepper has non-editable steps that force a user to move linearly through your process.

<ExamplesExample file="v-stepper/misc-non-editable" />

Editable steps

An editable step can be selected by a user at any point and will navigate them to that step.

<ExamplesExample file="v-stepper/misc-editable" />

Alternate label

Steppers also have an alternative label style which places the title under the step itself.

<ExamplesExample file="v-stepper/prop-alternate-label" />

Linear steppers

Linear steppers will always move a user through your defined path.

<ExamplesExample file="v-stepper/misc-linear" />

Optional steps

An optional step can be called out with sub-text.

<ExamplesExample file="v-stepper/misc-optional" />

Items

The stepper component accepts an array of items similar to other components such as v-list and v-select.

<ExamplesExample file="v-stepper/misc-horizontal" />

::: warning

If no value is provided, the stepper will assign a value based off of its index + 1

:::

Mobile

Use the mobile prop to hide the title and subtitle of the v-stepper-item component.

<ExamplesExample file="v-stepper/prop-mobile" />

Errors

An error state can be displayed to notify the user of some action that must be taken.

<ExamplesExample file="v-stepper/misc-error" />

Dynamic steps

Steppers can have their steps dynamically added or removed. If a currently active step is removed, be sure to account for this by changing the applied model.

<ExamplesExample file="v-stepper/misc-dynamic" />

Alternative label with errors

The error state can also be applied to the alternative label style.

<ExamplesExample file="v-stepper/misc-alternate-error" />

Non linear

Non-linear steppers allow the user to move through your process in whatever way they choose.

<ExamplesExample file="v-stepper/prop-non-linear" />