# Steps
### Install
```js
import { createApp } from 'vue';
import { Step, Steps } from 'vant';
const app = createApp();
app.use(Step);
app.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` |
| inactive-color `v2.9.1` | Inactive step color | _string_ | `#969799` |
| active-icon | Active icon name | _string_ | `checked` |
| inactive-icon | Inactive 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.5.9` | Emitted when a step's title or icon is clicked | _index: number_ |
### Less Variables
How to use: [Custom Theme](#/en-US/theme).
| Name | Default Value | Description |
| -------------------------------- | --------------- | ----------- |
| @step-text-color | `@gray-6` | - |
| @step-active-color | `@green` | - |
| @step-process-text-color | `@text-color` | - |
| @step-font-size | `@font-size-md` | - |
| @step-line-color | `@border-color` | - |
| @step-finish-line-color | `@green` | - |
| @step-finish-text-color | `@text-color` | - |
| @step-icon-size | `12px` | - |
| @step-circle-size | `5px` | - |
| @step-circle-color | `@gray-6` | - |
| @step-horizontal-title-font-size | `@font-size-sm` | - |
| @steps-background-color | `@white` | - |