Socket
Socket
Sign inDemoInstall

progress-tracker

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

progress-tracker

A HTML component to illustrate the steps in a multi step process e.g. a multi step form, a timeline or a quiz.


Version published
Maintainers
1
Weekly downloads
2,002
decreased by-10.82%

Weekly downloads

Readme

Source

SASS Progress Tracker

A HTML component to illustrate the steps in a multi step process e.g. a multi step form, a timeline or a quiz.

View demo

Installation

$ npm install progress-tracker --save

Import

After installation you can import it into your Sass files with the statement below.

@import "node_modules/progress-tracker/src/styles/progress-tracker.scss";

The JS that is part of this site is just for demonstration purposes, add your own JS as needed to toggle the classes for the step states.

Markup

Follow the HTML code example below for basic usage; each demo sets the first two steps as complete, the third step as active and the last two steps as inactive.

For additional styles add modifier classes and additional markup as needed in the examples below. You can add multiple modifier classes to achieve additional styles that those shown below.

<ul class="progress-tracker">
  <li class="progress-step is-complete">
    <div class="progress-marker"></div>
  </li>
  <li class="progress-step is-complete">
    <div class="progress-marker"></div>
  </li>
  <li class="progress-step is-active">
    <div class="progress-marker"></div>
  </li>
  <li class="progress-step">
    <div class="progress-marker"></div>
  </li>
  <li class="progress-step">
    <div class="progress-marker"></div>
  </li>
</ul>

Demo site

Clone or download from Github.

    $ npm install
    $ gulp serve

License

MIT © Nigel O Toole

Keywords

FAQs

Last updated on 01 Dec 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc