Socket
Socket
Sign inDemoInstall

@digitalspace/step-progress-bar

Package Overview
Dependencies
7
Maintainers
3
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @digitalspace/step-progress-bar

To create a step progress bar, insert the following into your markup:


Version published
Maintainers
3
Created

Readme

Source

StepProgressBar

To create a step progress bar, insert the following into your markup:

<ds-step-progress-bar [activeStepIndex]="1" [steps]="steps"></ds-step-progress-bar>

activeStepIndex dictates up to which step will be "active". To have no steps active set activeStepIndex to -1.

**Step is a maditory input. This will include the step information. It should be formatted like the following:

  steps = [
    {
      stepText: '1',
      stepSubText: 'Step 1'
    },
    {
      stepText: '2',
      stepSubText: 'Step 2'
    },
    {
      stepText: 3',
      stepSubText: 'Step 3'
    },
    {
      stepText: 4',
      stepSubText: 'Step 4'
    }
  ];

You can also leave both stepText and stepSubText as empty string.

You are able to customize colours by using the following inputs:

<ds-step-progress-bar [activeStepIndex]="1"
  [progressBarColour]="'grey'"
  [progressBarActiveColour]="'blue'"
  [subTextColour]="'grey'"
  [subTextActiveColour]="'blue'"
  [stepTextColour]="'white'"
  [steps]="steps"></ds-step-progress-bar>

FAQs

Last updated on 01 Nov 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