
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
@equinor/fusion-react-stepper
Advanced tools
Component for displaying and using stepps in stepper
Name | Type | Default | Description |
---|---|---|---|
initialStepKey | string / undefined | / | Sets the initial step key for an uncontrolled stepper component. If undefined the stepper will use the first step as initial step. |
stepKey | string / 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. |
forceOrder | boolean | false | Can't skip steps. Steps will have specific order. |
verticalSteps | boolean | false | Change stepper layout to vertical. Vertical positioning of steps. |
hideNavButtons | boolean | false | Show/hide next and previous navigation buttons for stepper. |
onChange | (stepKey: string, allSteps: StepKey[]) => void | onChange event for active step. |
Name | Type | Default | Description |
---|---|---|---|
stepKey | string | / | Step key of step. Used for activeStepKey. required |
title | string | / | Title of step |
description | string | / | Description of step |
disabled | boolean | false | Disable step. Can't be clicked, but can manually navigate to it |
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>
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>
);
FAQs
Component for displaying and using stepps in stepper
The npm package @equinor/fusion-react-stepper receives a total of 168 weekly downloads. As such, @equinor/fusion-react-stepper popularity was classified as not popular.
We found that @equinor/fusion-react-stepper demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers collaborating on the project.
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.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.