
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
@leafygreen-ui/stepper
Advanced tools
yarn add @leafygreen-ui/stepper
npm install @leafygreen-ui/stepper
<Stepper currentStep={0} maxDisplayedSteps={2}>
<div>Step 1</div>
<div>Step 2</div>
</Stepper>
or
<Stepper currentStep={0} maxDisplayedSteps={2}>
<Step>Step 1</Step>
<Step>Step 2</Step>
</Stepper>
Output HTML
<ol class="leafygreen-ui-1pvgjhr" aria-label="progress">
<li>
<div class="leafygreen-ui-1x8f1m7" aria-label="step1" aria-current="step">
<div class="lg-ui-03f12bfd leafygreen-ui-1dyv85w">
<div class="leafygreen-ui-17xqetg">1</div>
</div>
<p class="lg-ui-d036aa4e leafygreen-ui-1u866nc">Step 1</p>
</div>
</li>
<li>
<div class="leafygreen-ui-1x8f1m7" aria-label="step2" aria-current="false">
<div class="lg-ui-03f12bfd leafygreen-ui-1oypnhq">
<div class="leafygreen-ui-17xqetg">2</div>
</div>
<p class="lg-ui-d036aa4e leafygreen-ui-1uk291k">Step 2</p>
</div>
</li>
</ol>
Prop | Type | Description | Default |
---|---|---|---|
children | React.ReactNode | ReactNode to display as the children of each step | |
currentStep | number | Starting at 0, index of current step that should be highlighted. | |
maxDisplayedSteps | number | Maximum number of steps displayed a time. The rest are hidden. | children.length |
completedStepsShown | number | Number of completed steps shown before the currentStep . The ellipses step is included in this count. | 1 |
className | string | className applied to the root element |
FAQs
leafyGreen UI Kit Stepper
The npm package @leafygreen-ui/stepper receives a total of 1,240 weekly downloads. As such, @leafygreen-ui/stepper popularity was classified as popular.
We found that @leafygreen-ui/stepper demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.