Skip to content

AisSteps ​

The AisSteps utilizes a group of AisStep components to guide users through processes of a desired task. It is used to show which step in the process is currently active and to provide a clickable path to the previous and next steps.

Use the steps prop to pass an array of step objects. The step object can have the following attributes:

javascript
{ step: 1, label: 'Step 1', labelIcon: 'user', description: 'Some longer text about the step' (optional) },

Step, Label, and Description ​

The step prop is the text displayed inside the step circle. The label prop sets the text displayed below the step. The description prop sets the text that will be displayed below the label. There are also other helper props: label-icon, label-class, description-class

  1. 1

    Profile
    Set up your profile
  2. 2

    Product
    Choose a product
  3. 3

    Billing
    Set up your billing
  4. 4

    Done
    You are done

Slots ​

The following slots are exposed:

  • default: slot for customizing the entire step element
  • step: the slot for what is inside of the step
  • label: the slot for customizing the label
  • description: the slot for customizing the description
  1. 1

    Profile
    Set up your profile
  2. 2

    Product
    Choose a product
  3. Billing
    • add payment method
    • add billing address
    • click Purchase
  4. 4

    Done
    You are done

Props ​

icon ​

The icon attribute sets the icon that will be appear inside the step. Icon prop will override step prop.

  1. Profile
    Set up your profile
  2. Product
    Choose a product
  3. Billing
    Set up your billing
  4. Done
    You are done

variant ​

variant conveys the type of content being presented. The accepted values are: default, primary, secondary, info, success, warning, danger. The default value is default.

  1. 1

    Hello
    Nice to meet you!
  2. 2

    This
  3. 3

    Is
  4. 4

    Goodbye
    See you soon

size ​

size sets the size of the step. The accepted values are: xs, sm, md, lg. The default value is md.

  1. 1

    Beginning
  2. 2

    Middle
  3. 3

    End

vertical ​

Setting vertical to true will display the steps vertically. The default value is false.

  1. 1

    Eat
    This is important
  2. 2

    Sleep
  3. 3

    Repeat

Component Reference ​

Props ​

Property
Type(s)
Required
Default
Description
Deprecated
modelValue
Number
1
v-model prop. Used in conjunction with the event @update:modelValue
false
outline
Boolean
false
Applies one of the theme color variants to the border instead of the background.
false
size
String
'md'
The size of each step
Valid values:
xs, sm, md, lg
false
step
String
'value'
The attribute of the step to display in the step circle
false
steps
Array
[]
Collection of step objects. Attributes on a step object: `value`, `label`, `icon`, `description`
false
variant
String
'default'
Applies one of the theme color variants to the component
Valid values:
primary, secondary, default, info, success, warning, danger, plain
false
vertical
Boolean
false
Toggles whether the steps are shown vertically or horizontally
Valid values:
true, false
false

Slots ​

Name
Scoped
Description
default

Events ​

Event
Arguments
Description
change
click
update:modelValue