# Progress List (/feedback/progress-list)





<ComponentPreview name="progress-list-preskok-demo" description="Order status in a card. The buttons simulate status updates." />

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](/navigation/wizard).

## Vertical with descriptions [#vertical-with-descriptions]

<ComponentPreview name="progress-list-vertical-preskok-demo" description="Vertical progress list built from items, with a description per step." />

Pass `orientation="vertical"` for timelines, and `description` on a `ProgressListItem` for
secondary text like a timestamp.

## Compact [#compact]

<ComponentPreview name="progress-list-compact-preskok-demo" description="Numbered steps without labels in a list of orders." />

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`.

## Installation [#installation]

<CodeTabs>
  <TabsList>
    <TabsTrigger id="cli">
      CLI
    </TabsTrigger>

    <TabsTrigger id="manual">
      Manual
    </TabsTrigger>
  </TabsList>

  <TabsContent id="cli">
    ```bash
    npx shadcn@latest add @preskok/progress-list
    ```
  </TabsContent>

  <TabsContent id="manual">
    <Steps>
      <Step>
        Copy and paste the following code into your project.

        <ComponentSource name="progress-list" title="registry/preskok/ui/preskok-ui/progress-list.tsx" />
      </Step>

      <Step>
        Update the import paths to match your project setup.
      </Step>
    </Steps>
  </TabsContent>
</CodeTabs>

## Usage [#usage]

```tsx
import {
  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`.
