@spark-web/stepper
TypeScript icon, indicating that this package has built-in type declarations

0.0.0 • Public • Published

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

Prop Type Default Description
activeIndex number Sets the index of the active step.
children Array<ReactElement<StepProps>> Children elements to be rendered within the component. Expected to be Step.
data? DataAttributeMap Sets data attributes on the component.
label? string Describes the purpose of the navigation to users of assistive technology.

Step

Prop Type Default Description
children ReactNode Children elements to be rendered within the component.
data? DataAttributeMap Sets data attributes on the component.
status? "active" | "waiting" | "declined" Status of the step (when active).
heading string Heading of the step.
secondaryHeading? string Secondary heading of the step.

Readme

Keywords

none

Package Sidebar

Install

npm i @spark-web/stepper

Weekly Downloads

1

Version

0.0.0

License

MIT

Unpacked Size

40.5 kB

Total Files

10

Last publish

Collaborators

  • brighte
  • brighte-release-bot