# Steps ### Install ```js import Vue from 'vue'; import { Step, Steps } from 'vant'; Vue.use(Step); Vue.use(Steps); ``` ## Usage ### Basic Usage ```html Step1 Step2 Step3 Step4 ``` ```js export default { data() { return { active: 1 }; } } ``` ### Custom Style ```html Step1 Step2 Step3 Step4 ``` ### Vertical Steps ```html

【City】Status1

2016-07-12 12:40

【City】Status2

2016-07-11 10:00

【City】Status3

2016-07-10 09:30

``` ## API ### Steps Props | Attribute | Description | Type | Default | |------|------|------|------| | active | Active step | *number \| string* | `0` | | direction | Can be set to `vertical` | *string* | `horizontal` | | active-color | Active step color | *string* | `#07c160` | | active-icon | Active icon name | *string* | `checked` | | inactive-icon | Active icon name | *string* | - | ### Step Slots | Name | Description | |------|------| | active-icon | Custom active icon | | inactive-icon | Custom inactive icon | ### Steps Events | Event | Description | Arguments | |------|------|------| | click-step `v2.6.0` | Triggered when a step's title or icon is clicked | *index: number* |