Skip to content

Angular Material Stepper. A stepper directive based on the Material Design Specification. Steppers convey progress through numbered steps. They may also be used for navigation.

License

Notifications You must be signed in to change notification settings

richshaw/md-stepper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Angular Material Stepper

Description

A stepper directive based on the Material Design Specificationn.

Status

  • Currently in development
  • CSS is only present for horizontal stepper
  • Vertical stepper is a todo
  • Mobile stepper is a todo

Dependencies

Requires Angular and Angular Material

Demo

Demo is available on Codepen

Installation

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']);

Usage

Basic markup

<md-stepper md-direction="">
  <md-step>
      <md-step-circle></md-step-circle>
      <md-step-text></md-step-text>
  </md-step>
</md-stepper>

Example markup

<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>

Parameters

  • md-direction = horizontal (vertical layout hasn't been implemented yet)

License

This software is provided free of charge and without restriction under the MIT License.

About

Angular Material Stepper. A stepper directive based on the Material Design Specification. Steppers convey progress through numbered steps. They may also be used for navigation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published