# Steps Bar (steps)

# Description

Shows the progress in a process with different stages.

# Usage result

# How to use it

Importing a component in a .ux file:

<import name="q-steps" src="qaui/src/components/steps/index"></import>
<import name="q-step" src="qaui/src/components/step/index"></import>
1
2

# Example

<template>
  <div class="qaui-steps">
    <div class="qaui-steps-wrapper">
      <q-steps direction="row" id="11" current="{{1}}">
        <q-step title="Step #1" group-id="11"></q-step>
        <q-step title="Step #2" group-id="11"></q-step>
        <q-step title="Step #3" group-id="11"></q-step>
      </q-steps>
    </div>
    <div class="qaui-steps-wrapper">
      <q-steps direction="row" id="12" current="{{1}}">
        <q-step
          title="Step #1"
          group-id="12"
          content="Step 1 Description"
        ></q-step>
        <q-step
          title="Step #2"
          content="Step 2 Description"
          group-id="12"
        ></q-step>
        <q-step
          title="Step #3"
          content="Step 3 Description"
          group-id="12"
        ></q-step>
        <q-step
          title="Step #4"
          content="Step 4 Description"
          group-id="12"
        ></q-step>
      </q-steps>
    </div>
    <div class="qaui-steps-wrapper">
      <q-steps direction="row" id="16" current="{{1}}" has-icon="{{true}}">
        <q-step
          title="Step #1"
          group-id="16"
          content="Step 1 Description"
        ></q-step>
        <q-step
          title="Step #2"
          group-id="16"
          content="Step Description"
          status="error"
        ></q-step>
        <q-step
          title="Step #3"
          group-id="16"
          content="Step 3 Description"
        ></q-step>
      </q-steps>
    </div>
    <div class="qaui-steps-wrapper">
      <q-steps direction="row" id="17" current="{{1}}" has-text="{{true}}">
        <q-step
          title="Step #1"
          group-id="17"
          content="Step 1 Description"
        ></q-step>
        <q-step
          title="Step #2"
          group-id="17"
          content="Step 2 Description"
          status="error"
        ></q-step>
        <q-step
          title="Step #3"
          group-id="17"
          content="Step 3 Description"
        ></q-step>
      </q-steps>
    </div>
    <div class="qaui-steps-wrapper">
      <q-steps direction="column" id="13" current="{{1}}" has-text="{{true}}">
        <q-step
          title="Step #1"
          content="Step Description Step Description Step Description Step Description Step Description Step Description Step Description Step Description Step Description Step Description Step Description Step Description Step Description Step Description Step Description"
          group-id="13"
        ></q-step>
        <q-step
          title="Step #2"
          content="Step Description"
          group-id="13"
          status="error"
        ></q-step>
        <q-step
          title="Step #3"
          content="Step 3 Description"
          group-id="13"
        ></q-step>
        <q-step
          title="Step #4"
          content="Step 4 Description"
          group-id="13"
        ></q-step>
      </q-steps>
    </div>
    <div class="qaui-steps-wrapper">
      <q-steps direction="column" id="18" current="{{1}}" has-icon="{{true}}">
        <q-step
          title="Step #1"
          content="Step Description Step Description Step Description Step Description Step Description Step Description Step Description Step Description Step Description Step Description Step Description Step Description Step Description Step Description Step Description"
          group-id="18"
        ></q-step>
        <q-step
          title="Step #2"
          content="Step Description"
          group-id="18"
          status="error"
        ></q-step>
        <q-step
          title="Step #3"
          content="Step 3 Description"
          group-id="18"
        ></q-step>
        <q-step
          title="Step #4"
          content="Step 4 Description"
          group-id="18"
        ></q-step>
      </q-steps>
    </div>
    <div class="qaui-steps-wrapper">
      <q-steps
        direction="column"
        id="14"
        error-color="#FF0000"
        finished-color="#00FF80"
        current="{{1}}"
      >
        <q-step
          title="Custom Color"
          content="Step Description Step Description Step Description Step Description Step Description Step Description Step Description Step Description Step Description Step Description Step Description Step Description Step Description Step Description Step Description"
          group-id="14"
        ></q-step>
        <q-step
          title="Step #2"
          icon="close"
          content="Step Description"
          group-id="14"
          status="error"
        ></q-step>
        <q-step
          title="Step #3"
          content="Step 3 Description"
          group-id="14"
        ></q-step>
        <q-step
          title="Step #4"
          content="Step 4 Description"
          group-id="14"
        ></q-step>
      </q-steps>
    </div>
    <div class="qaui-steps-wrapper">
      <q-steps
        direction="column"
        id="15"
        error-color="#FF0000"
        finished-color="#00FF80"
        current="{{ current }}"
      >
        <q-step
          title="Step #1"
          content="Step Description Step Description Step Description Step Description Step Description Step Description Step Description Step Description Step Description Step Description Step Description Step Description Step Description Step Description Step Description"
          group-id="15"
        ></q-step>
        <q-step
          title="Step #2"
          content="Step Description"
          group-id="15"
        ></q-step>
        <q-step
          title="Step #3"
          content="Step 3 Description"
          group-id="15"
        ></q-step>
        <q-step
          title="Step #4"
          content="Step 4 Description"
          group-id="15"
        ></q-step>
      </q-steps>
    </div>
    <div class="qaui-steps-button">
      <q-button class="button" type="ghost" ontap="changeStatus"
        >Next Step</q-button
      >
    </div>
  </div>
</template>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
export default {
  data() {
    return {
      current: 0,
    }
  },

  changeStatus() {
    this.current = this.current + 1
  },
}
1
2
3
4
5
6
7
8
9
10
11
.qaui-steps {
  background-color: #f7f7f7;
  flex-direction: column;

  &-wrapper {
    background-color: #ffffff;
    padding-bottom: 10px;
    margin-bottom: 10px;
  }

  &-button {
    align-self: center;
    margin-bottom: 10px;
  }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

# steps Component Properties

Attribute Type Value by default Description
current Number 0 Current step, starting from 0
direction String 'horizontal' Arrangement mode. The options are: 'vertical' |'horizontal'
id String '' ID (mandatory). When multiple steps components are used at the same time, the IDs of the steps must be unique.
hasText Boolean false Indicates whether to display integers in the default style.
hasIcon Boolean false Indicates if the step has icon
finishedColor String #456FFF Customized color of the finished status
errorColor String #F19E38 Customized color of the error status

# step Component Properties

Attribute Type Value by default Description
status String 'waiting' Current status of a step: 'waiting' | 'proceed' | 'finished' | 'error'
icon String '' Style of the icon. For more details see the icon component.
groupId String '' ID of the parent component (mandatory).
title String '' Custom title
content String '' Custom content