@sikt/sds-progress-indicator
v3.0.1
Published
```sh npm i -s @sikt/sds-progress-indicator ```
Readme
@sikt/sds-progress-indicator
Consume
npm i -s @sikt/sds-progress-indicatorReact
The state of each <ProgressStep> component is set by the currentIndex prop on the <ProgressIndicator>.
Actions can be added to a step with the child components <ProgressStepButton> and <ProgressStepLink>.
import { ProgressIndicator, ProgressStep } from "@sikt/sds-progress-indicator";
import "@sikt/sds-progress-indicator/dist/index.css";
<ProgressIndicator currentIndex={0} heading="First step">
<ProgressStep>
<ProgressStepButton onClick={() => {}}>First step</ProgressStepButton>
</ProgressStep>
<ProgressStep>Second step</ProgressStep>
<ProgressStep>Third step</ProgressStep>
<ProgressStep>Fourth step</ProgressStep>
</ProgressIndicator>;For use without details add the count prop and omit children.
<ProgressIndicator currentIndex={0} count={4} heading="First step" />Stylesheets & custom markup
Import stylesheet:
@import url("@sikt/sds-progress-indicator");Create custom markup:
<div class="sds-progress-indicator">...</div>