// Copyright (c) Meta Platforms, Inc. and affiliates. 'use client'; import {HStack} from '@astryxdesign/core/Layout'; import {Stepper, Step} from '@astryxdesign/core/Stepper'; import {Text} from '@astryxdesign/core/Text'; import {Icon} from '@astryxdesign/core/Icon'; import {Spinner} from '@astryxdesign/core/Spinner'; export default function StepIndicator() { // The first four steps are all completed — same progress, so the indicator // prop is the only difference between them. `auto` is the one that reacts to // progress: a numbered badge until the step is reached, then a check. The // last step is in progress instead, because the node it passes to `indicator` // is a spinner and a spinner only makes sense on work that is running. return (
auto (default)
number
Custom node } />
none
Spinner (in progress) } />
); }