You are currently viewing outdated (<=3.x) Chameleon documentation on our old website. For version >=4.x, check out our new website.

Current release: 3.5.0 | hub

components

Stepper (code)

Steppers let a user know what their current position is in a series of steps.

  • Current: A One
  • A Two
  • A One-Two
  • Three
  • Four
import { Stepper } from '@mediahuis/chameleon-react'

Props

NameTypeDefaultRequiredDescription
accessibilityLabelActiveString'Current: '-The label provided to screen readers when a step is active (e.g. Current: Login).
accessibilityLabelCompletedString'Completed: '-The label provided to screen readers when a step is completed (e.g. Completed: Login).
activeStepIndexNumber0-The index of the active step.
stepsArray<String>[]-The labels of the shown steps.

System Props

System Props

Next to the properties listed in the propstable, a collection of system props can be added to any component for further general styling and layouting purposes. These props vary per component.

To read more about the system, click here to check out its dedicated page.

Steps

default: []

The strings passed in this array will be the title of the Stepper's steps.

  • Current: A One
  • A Two
  • A One-Two
  • Three
  • Four

Active Step Index

default: 0

To visually advance to a next step, you can increase the passed in activeStepIndex.

  • Current: A One
  • A Two
  • A One-Two
  • Three
  • Four

© Copyright 2020 Mediahuis NV. All rights Reserved