Socket
Socket
Sign inDemoInstall

@finastra/stepper

Package Overview
Dependencies
8
Maintainers
3
Versions
54
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @finastra/stepper

Stepper Web Component


Version published
Weekly downloads
4
decreased by-87.1%
Maintainers
3
Created
Weekly downloads
 

Readme

Source

Stepper

See it on NPM! How big is this package in your project? Storybook

Steppers display progress through a sequence of logical and numbered steps.

We created two types of stepper, one horizontal and one vertical, you can then play around with the different states of steps, such as active or success for example.

Usage

Import

npm i @finastra/stepper
import '@finastra/stepper';
this.steps = [
    {
        label: 'Step Success',
        description: 'Ad in dolore eu anim est excepteur ex. Ullamco irure voluptate laboris cupidatat non excepteur minim nulla dolor. '
    },
    {
        label: 'Step Active',
        description: 'Aute velit incididunt ex veniam aliqua. Ullamco ullamco reprehenderit laborum aliquip dolor. Do elit sint ullamco .',
        disabled: true
    },
    {
        label: 'Step Active',
        description: 'Aute velit incididunt ex veniam aliqua. Ullamco ullamco reprehenderit laborum aliquip dolor. Do elit sint ullamco .',
        error: true
    },
    {
        label: 'Step Inactive',
        description: 'Sunt mollit quis anim laboris amet laboris irure magna. Fugiat ullamco ea qui consequat laborum. ',
        activeStepIcon: 'sync'
    }
];
...
<fds-horizontal-stepper currentStepIndex="1" steps="${this.steps}"></fds-horizontal-stepper>

<fds-vertical-stepper currentStepIndex="1" steps="${this.steps}"></fds-vertical-stepper>

API

Attributes
AttributeTypeDefaultDescription
secondarybooleanfalseUse Secondary color.
Properties
PropertyAttributeTypeDefaultDescription
currentStepIndexcurrentStepIndexnumber-1Index of current active step.
stepsStep[][]
Methods
MethodType
renderIconAndLine(index: number): TemplateResult<1>
CSS Custom Properties
PropertyTypeDefaultDescription
--fds-stepper-line-spacetext"8px"Stepper line space.

fds-vertical-stepper

Attributes
AttributeTypeDefaultDescription
labelMode] - Position of the label relative to the steps. Available values ["none", "center", "background"
secondarybooleanfalseUse Secondary color.
Properties
PropertyAttributeTypeDefaultDescription
currentStepIndexcurrentStepIndexnumber-1Index of current active step.
labelModelabel-modestring""
stepsStep[][]
Methods
MethodType
renderIconAndLine(index: number): TemplateResult<1>
CSS Custom Properties
PropertyTypeDefaultDescription
--fds-stepper-line-spacetext"8px"Stepper line space.

Keywords

FAQs

Last updated on 27 Jul 2023

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