A stepper directive based on the Material Design Specificationn.
- Currently in development
- CSS is only present for horizontal stepper
- Vertical stepper is a todo
- Mobile stepper is a todo
Requires Angular and Angular Material
Demo is available on Codepen
In your index.html file, include the stepper module and style sheet.
<!-- style sheet -->
<link href="../md-stepper/src/stepper.css" rel="stylesheet" type="text/css"/>
<!-- module -->
<script type="text/javascript" src="../src/md-stepper/stepper.js"></script>
Include the material.components.stepper module as a dependency in your application.
angular.module('myApp', ['ngMaterial', 'material.components.stepper']);
<md-stepper md-direction="">
<md-step>
<md-step-circle></md-step-circle>
<md-step-text></md-step-text>
</md-step>
</md-stepper>
<md-stepper class="margin-bottom" md-direction="horizontal">
<md-step class="done">
<md-step-circle><md-icon md-svg-icon="action:ic_done_24px"></md-icon></md-step-circle>
<md-step-text>Create experiment</md-step-text>
</md-step>
<md-step class="done">
<md-step-circle><md-icon md-svg-icon="action:ic_done_24px"></md-icon></md-step-circle>
<md-step-text>Experiment settings</md-step-text>
</md-step>
<md-step class="active">
<md-step-circle>3</md-step-circle>
<md-step-text>Add ideas</md-step-text>
</md-step>
<md-step>
<md-step-circle>4</md-step-circle>
<md-step-text>Launch</md-step-text>
</md-step>
</md-stepper>
- md-direction = horizontal (vertical layout hasn't been implemented yet)
This software is provided free of charge and without restriction under the MIT License.