3.2.12 • Published 25 days ago
@leafygreen-ui/stepper v3.2.12
Stepper
View on MongoDB.design
Installation
Yarn
yarn add @leafygreen-ui/stepper
NPM
npm install @leafygreen-ui/stepper
Example
<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>
Properties
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 |
3.2.12
25 days ago
3.2.11
1 month ago
3.2.10
2 months ago
3.2.10-popover.0
4 months ago
4.0.0-alpha.1
10 months ago
4.0.0-alpha.0
10 months ago
3.2.2
9 months ago
3.2.1
10 months ago
3.2.0
10 months ago
3.2.6
8 months ago
3.2.5
8 months ago
3.2.4
9 months ago
3.2.3
9 months ago
3.2.9
6 months ago
3.2.8
7 months ago
3.2.7
7 months ago
3.1.12
12 months ago
3.1.14
11 months ago
3.1.13
11 months ago
3.1.13-next.7
12 months ago
3.1.13-next.6
12 months ago
3.1.13-next.5
12 months ago
3.1.13-next.4
12 months ago
3.1.13-next.3
12 months ago
3.1.13-next.2
12 months ago
3.1.13-next.1
12 months ago
3.1.13-next.0
12 months ago
3.1.11
1 year ago
3.1.10
1 year ago
3.1.9
1 year ago
3.1.8
1 year ago
3.1.7
1 year ago
3.1.6
1 year ago
3.1.5
1 year ago
3.1.4
1 year ago
3.1.3
2 years ago
3.1.2
2 years ago
3.1.1
2 years ago
3.1.0
2 years ago
3.0.5
2 years ago
3.1.0-test.0
2 years ago
3.1.0-next.1
2 years ago
3.1.0-next.0
2 years ago
3.1.0-next.2
2 years ago
3.0.4
2 years ago
3.0.3
2 years ago
3.0.2
2 years ago
3.0.1
2 years ago
3.0.0
2 years ago
2.1.6
2 years ago
2.1.5
3 years ago
2.1.4
3 years ago
2.1.3
3 years ago
2.1.2
3 years ago
2.1.1
3 years ago
2.1.0
3 years ago
2.0.3
3 years ago
2.0.2
3 years ago
2.0.1
4 years ago
2.0.0
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago