1.1.3 • Published 2 years ago

genk-step-progress-bar v1.1.3

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
2 years ago

Multi step and dynamic progress bar built with Lit-Element. This webcomponent follows the open-wc recommendation.

Installation

npm install genk-step-progress-bar --save

Built With

Usage

<script type="module">
  import 'genk-step-progress-bar/genk-step-progress-bar.js';
</script>

<genk-step-progress-bar .steps=${ARRAY}></genk-step-progress-bar>

Available Props

Required

  • steps (Array) - Array of Objects with Badge and/or Label key-values

Optional

  • activeStep (Number) - Initial active step, 1 by default

Available CSS variables

Colors

--genk-spb-clr-primary
--genk-spb-clr-secondary
--genk-spb-clr-dark
--genk-spb-clr-grey
--genk-spb-clr-light

Dimensions

--genk-spb-width
--genk-spb-badge-size

Transitions

--genk-spb-transition-duration
--genk-spb-transition-delay
--genk-spb-transition-timing-function

Linting

To scan the project for linting and formatting errors, run

npm run lint

To automatically fix linting and formatting errors, run

npm run format

Testing

To execute a single test run:

npm run test

To run the tests in interactive watch mode run:

npm run test:watch

Tooling configs

For most of the tools, the configuration is in the package.json to minimize the amount of files in your project.

If you customize the configuration a lot, you can consider moving them to individual files.

Local Demo

npm run start

To run a local development server with web-dev-server that serves the basic demo located in demo/index.html

Contact

Pablo Álamo - LinkedIn - pabloalamovargas@gmail.com

Project Link: https://gitlab.com/pablodevs1/lit-steps-progress-bar

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.0

2 years ago