Wizard/Stepper

Steppers display progress through a sequence of logical and numbered steps. They may also be used for navigation.

TypeResource
DesignFigma
WebWeb Storybook
CodeGitlab
  1. Step 1

    Description of step 1

  2. 2

    Step 2

    Description of step 2

  3. 3

    Step 3

    Description of step 3

Step 2

Please completed this process to continue next step

Your Name

Usage

import { Stepper } from 'bio-bind-ui';
<Stepper
  currentStepIndex={1}
  direction='horizontal'
  labelContainerStyle={{
    width: 75,
  }}
  mode='light'
  stepItems={[
    {
      label: 'Step 1',
      subLabel: 'Description of step 1',
    },
    {
      label: 'Step 2',
      subLabel: 'Description of step 2',
    },
    {
      label: 'Step 3',
      subLabel: 'Description of step 3',
    },
  ]}
  style={{
    width: 400,
  }}
/>

Example

Direction

Set the direction prop to horizontal or vertical.

  1. Step 1

    Description of step 1

  2. 2

    Step 2

    Description of step 2

  3. 3

    Step 3

    Description of step 3

Step 2

Please completed this process to continue next step

Your Name

Gap Line (optional)

Set the isSeparated prop to true to create gap between line and stepper item.

  1. 1

    Step 1

    Description of step 1

  2. 2

    Step 2

    Description of step 2

  3. 3

    Step 3

    Description of step 3

Step 2

Please completed this process to continue next step

Your Name

Mode (optional)

Use mode to use dark or light

  1. Step 1

    Description of step 1

  2. 2

    Step 2

    Description of step 2

  3. 3

    Step 3

    Description of step 3

Step 2

Please completed this process to continue next step

Your Name

Props

PropsRequiredDefaultTypedescription
directionfalsehorizontalhorizontal verticalThe direction of stepper horizontal or vertical.
stylefalse-CSSPropertiesCustom styles for the stepper component.
modefalselightlight darkThe theme mode of the stepper (light or dark).
isSeparatedfalsefalsetrue falseSeparated line to the stepper items.
labelContainerStylefalse-CSSPropertiesCustom styles for label container setting.
currentStepIndexfalse-numberThe current active stepper.
stepItemsfalse[]Array<{ label: string, subLabel: string, iconStep: React.ReactNode; }>The list of stepper items containing a label, sub label or icon for the stepper.
iconCompletedStepfalse-React.ReactNodeIcon for each of stepper items is completed
BIND © Biofarma Innovate Next-level Design .