Install:
$ npm install bootstrap-steps
or
$ yarn add bootstrap-steps
Example:
-
1 Step 1
-
2 Step 2
-
3 Step 3
-
4 Step 4
<ul class="steps">
<li class="step step-success">
<div class="step-content">
<span class="step-circle">1</span>
<span class="step-text">Step 1</span>
</div>
</li>
<li class="step step-active">
<div class="step-content">
<span class="step-circle">2</span>
<span class="step-text">Step 2</span>
</div>
</li>
<li class="step">
<div class="step-content">
<span class="step-circle">3</span>
<span class="step-text">Step 3</span>
</div>
</li>
<li class="step">
<div class="step-content">
<span class="step-circle">4</span>
<span class="step-text">Step 4</span>
</div>
</li>
</ul>
Error step:
-
1 Step 1
-
2 Step 2
-
3 Step 3
-
4 Step 4
<ul class="steps">
<li class="step step-success">
<div class="step-content">
<span class="step-circle">1</span>
<span class="step-text">Step 1</span>
</div>
</li>
<li class="step step-error">
<div class="step-content">
<span class="step-circle">2</span>
<span class="step-text">Step 2</span>
</div>
</li>
<li class="step">
<div class="step-content">
<span class="step-circle">3</span>
<span class="step-text">Step 3</span>
</div>
</li>
<li class="step">
<div class="step-content">
<span class="step-circle">4</span>
<span class="step-text">Step 4</span>
</div>
</li>
</ul>