1.0.1 • Published 6 days ago

@equinor/fusion-react-stepper v1.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
6 days ago

@equinor/fusion-react-stepper

Published on npm

Stepper

Properties/Attributes

for stepper

NameTypeDefaultDescription
activeStepKeystring/Select/change active stepp, use stepKey . required
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) => 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

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

<Stepper activeStepKey="step1" onChange={(e) => console.log('active: ', e)} 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>
1.0.1

6 days ago

1.0.0

3 months ago

0.4.4

4 months ago

0.4.3

5 months ago

0.4.2

5 months ago

0.4.1

5 months ago

0.4.0

6 months ago

0.3.0

7 months ago

0.2.2

8 months ago

0.2.1

8 months ago

0.2.0

9 months ago

0.1.3

9 months ago

0.1.2

9 months ago

0.1.1

10 months ago