Skip to main content
  1. Docs
  2. Components
  3. Navigation

Steps

Where a person is in a setup of a few steps: done, current and to come.

Import
@qeetrix/react/experimental
Status
ExperimentalSince 0.0.6
Renders
<ol>Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

Playground

Every prop, live, and the code it takes.

  1. Upload IdP metadata, Completed
  2. Map attributes
  3. Test sign-in, Not started
  4. Turn it on, Not started
Current step
Orientation
saml-setup.tsx
import { Steps } from "@qeetrix/react/experimental";

const steps = [
  { label: "Upload IdP metadata" },
  { label: "Map attributes" },
  { label: "Test sign-in" },
  { label: "Turn it on" },
];

<Steps steps={steps} current={1} />

02

A short wizard

Done steps filled with a tick, the current one outlined, those to come grey: an ordered list.

  1. Choose type, Completed
  2. Configure
  3. Assign users, Not started
  4. Review, Not started

03

Vertical

orientation="vertical", with a description under each label: for a longer setup.

  1. Upload IdP metadata, Completedacme-idp-metadata.xml
  2. Map attributes, CompletedEmail, name and groups
  3. Test sign-inpriya@acme.in
  4. Turn it on, Not startedEveryone at acme.in

04

Back to a done step

onStepSelect: done steps become buttons back to themselves. Steps ahead never are.

Add an application

  1. Configure
  2. Assign users, Not started
  3. Review, Not started

05

Narrow

Under 24rem, only the current step's label shows; the markers keep their place.

  1. Choose type, Completed
  2. Configure, Completed
  3. Assign users
  4. Review, Not started

06

A step that failed

status: "failed" or "attention", read after the name; a later step can stay done.

  1. Upload IdP metadata, Completedacme-idp-metadata.xml
  2. Map attributes, CompletedEmail, name and groups
  3. Test sign-in, FailedThe assertion's signature didn't match
  4. Turn it on, Not startedEveryone at acme.in

07

All done

current={steps.length}: every step ticked.

  1. Choose type, Completed
  2. Configure, Completed
  3. Assign users, Completed
  4. Review, Completed

08

In Hindi

QeetrixProvider's messages: the list's name, and "Completed" and "Not started" for screen readers.

  1. प्रकार चुनें, पूरा हुआ
  2. सेट करें
  3. उपयोगकर्ता जोड़ें, शुरू नहीं हुआ
  4. जाँचें, शुरू नहीं हुआ
Next — StepsUsage