0.0.0 • Published 2 years ago

@spark-web/stepper v0.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

title: Stepper

Example

<Stepper label="New finance application" activeIndex={2}>
  <Step heading="Product details" />
  <Step heading="Contact details" />
  <Step heading="Confirm your eligibility" />
  <Step heading="Household details" />
  <Step heading="Payment details" />
</Stepper>

Props

Stepper

PropTypeDefaultDescription
activeIndexnumberSets the index of the active step.
childrenArray\<ReactElement\>Children elements to be rendered within the component. Expected to be Step.
data?DataAttributeMapSets data attributes on the component.
label?stringDescribes the purpose of the navigation to users of assistive technology.

Step

PropTypeDefaultDescription
childrenReactNodeChildren elements to be rendered within the component.
data?DataAttributeMapSets data attributes on the component.
status?"active" | "waiting" | "declined"Status of the step (when active).
headingstringHeading of the step.
secondaryHeading?stringSecondary heading of the step.