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
ProfileSet up your profile2
ProductChoose a product3
BillingSet up your billing4
DoneYou are done
Slots
The following slots are exposed:
default: slot for customizing the entire step elementstep: the slot for what is inside of the steplabel: the slot for customizing the labeldescription: the slot for customizing the description
1
ProfileSet up your profile2
ProductChoose a product- Billing
- add payment method
- add billing address
- click Purchase
4
DoneYou are done
Props
icon
The icon attribute sets the icon that will be appear inside the step. Icon prop will override step prop.
- ProfileSet up your profile
- ProductChoose a product
- BillingSet up your billing
- DoneYou 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
HelloNice to meet you!2
This3
Is4
GoodbyeSee you soon
size
size sets the size of the step. The accepted values are: xs, sm, md, lg. The default value is md.
1
Beginning2
Middle3
End
vertical
Setting vertical to true will display the steps vertically. The default value is false.
1
EatThis is important2
Sleep3
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 |