A read-only overview of the steps in a multi-step process and which of them are done.
Use a progress list to show where a process stands, for example an order or an import. It is not interactive. When people need to move between steps, use a Wizard.
Pass orientation="vertical" for timelines, and description on a ProgressListItem for
secondary text like a timestamp.
Steps can drop their visible label. Give each one an aria-label so screen readers still hear the
step name with its status, and shrink the indicator with --step-indicator-size.
npx shadcn@latest add @preskok/progress-listimport {
ProgressList,
ProgressListItem,
} from "@/components/ui/preskok-ui/progress-list"
export function Checkout() {
return (
<ProgressList aria-label="Checkout" selectedKey="payment">
<ProgressListItem id="cart">Cart</ProgressListItem>
<ProgressListItem id="shipping">Shipping</ProgressListItem>
<ProgressListItem id="payment">Payment</ProgressListItem>
<ProgressListItem id="review">Review</ProgressListItem>
</ProgressList>
)
}selectedKey is the id of the current step. Steps before it are marked completed and steps after
it are upcoming. Each item exposes data-current and data-completed, and its render props include
isCurrent, isCompleted and stepNumber. Screen readers announce each step's status ("Completed",
"Current" or "Not completed") together with its label.
For a step without visible text, such as an icon, pass aria-label to the ProgressListItem.