Socket
Book a DemoInstallSign in
Socket

@equinor/fusion-react-stepper

Package Overview
Dependencies
Maintainers
4
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@equinor/fusion-react-stepper

Component for displaying and using stepps in stepper

2.0.3
latest
Source
npmnpm
Version published
Weekly downloads
168
-18.84%
Maintainers
4
Weekly downloads
 
Created
Source

@equinor/fusion-react-stepper

Published on npm

Stepper

Properties/Attributes

for stepper

NameTypeDefaultDescription
initialStepKeystring / undefined/Sets the initial step key for an uncontrolled stepper component. If undefined the stepper will use the first step as initial step.
stepKeystring / undefined/Used for making the stepper a controlled component. If it is set then it is the property that decides the currentStep and initialStepKey is ignored.
forceOrderbooleanfalseCan't skip steps. Steps will have specific order.
verticalStepsbooleanfalseChange stepper layout to vertical. Vertical positioning of steps.
hideNavButtonsbooleanfalseShow/hide next and previous navigation buttons for stepper.
onChange(stepKey: string, allSteps: StepKey[]) => voidonChange event for active step.

for step

NameTypeDefaultDescription
stepKeystring/Step key of step. Used for activeStepKey. required
titlestring/Title of step
descriptionstring/Description of step
disabledbooleanfalseDisable step. Can't be clicked, but can manually navigate to it

Example Usage

Uncontrolled usage

import { Stepper } from '@equinor/fusion-react-stepper';

<Stepper initialStepKey="step1" onChange={(e, k) => console.log('active: ', e, ' keys: ', k)} props>
  <Step title="Title 1" stepKey="step1" props>
    Step content 1
  </Step>
  <Step title="Title 2" stepKey="step2" props>
    Step content 2
  </Step>
  <Step title="Title 3" stepKey="step3" props>
    Step content 3
  </Step>
</Stepper>

Controlled usage

import { Stepper } from '@equinor/fusion-react-stepper';

const [activeStep, setActiveStep] = useState<string>('step1');
const onChangeStep = (stepKey: string, allSteps: StepKey[]) => {
    console.log('active: ', stepKey, ' keys: ', allSteps)
    if (activeStep !== stepKey) {
        setActiveStep(String(stepKey));
    }
};

return (
    <Stepper stepKey={activeStep} onChange={onChangeStep} props>
      <Step title="Title 1" stepKey="step1" props>
        Step content 1
      </Step>
      <Step title="Title 2" stepKey="step2" props>
        Step content 2
      </Step>
      <Step title="Title 3" stepKey="step3" props>
        Step content 3
      </Step>
    </Stepper>
);

Keywords

stepper

FAQs

Package last updated on 18 Jun 2025

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.