4.0.0-alpha.0 • Published 8 months ago

@contentful/f36-progress-stepper v4.0.0-alpha.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

title: 'ProgressStepper' type: 'component' status: 'alpha' slug: /components/progress-stepper/ github: 'https://github.com/contentful/forma-36/tree/main/packages/components/progress-stepper' storybook: 'https://f36-storybook.contentful.com/?path=/story/components-progress-stepper--default'

typescript: ./src/ProgressStepper.tsx,./src/Step/Step.tsx

ProgressStepper can be used to visually represent the division of a process into ordered steps

Import

import { ProgressStepper } from '@contentful/f36-components';
// or
import { ProgressStepper } from '@contentful/f36-progress-stepper';

Examples

Orientation

This component can be displayed in a horizontal or vertical orientation.

Example of ProgressStepper with horizontal orientation.

Example of ProgressStepper with vertical orientation.

Step Styles

This component can be displayed with steps that show numbers or icons.

Example of ProgressStepper with number step styles and displaying the step state options.

Example of ProgressStepper with icon step styles and displaying the step state options.

Labels

Example of ProgressStepper with horizontal orientation with labels.

Example of ProgressStepper with vertical orientation with labels.

Interactive Example

Example of the ProgressStepper with buttons to move between steps.

Props (API reference)

ProgressStepper

ProgressStepper.Step

Content guidelines

  • The progress stepper provides visual feedback to help guide the user through a workflow that involves linear steps
  • Each step has an optional label
  • Label text should be short, clear and concise

Accessibility

  • The ariaLabel prop for the ProgressStepper component is required. Provide a label that describes what the progress is about (e.g. App installation progress).
  • The aria-label provided for the each Step component communicates information about the step's number and type.