# Progress

A segmented bar with a percentage readout, and an indeterminate state.

[View Progress on CyberSpec](https://www.cyberspec.dev/components/sidebar/progress)

## Component

Progress belongs to the Data group in the CyberSpec catalog. It uses @ui-sdk/react/progress.

## Installation

Use a React 19 project with shadcn configured. Render the installed components inside the Cyber root, and import your global stylesheet in the app entry point.

```sh
bunx --bun shadcn@latest add https://www.cyberspec.dev/r/progress.json
```

## Example

```tsx
"use client"

import { Progress } from "@/components/ui/progress"

export default function ProgressDemo() {
  return (
    <>
      <Progress label="Decrypting shard" value={62} />
      <Progress label="Tracing uplink" busyLabel="Tracing" />
      <Progress label="Flashing firmware" value={75} variant="thin" />
    </>
  )
}
```

## Install this example

```sh
bunx --bun shadcn@latest add https://www.cyberspec.dev/r/progress-demo.json
```

## Resources

- [Interactive Progress preview](https://www.cyberspec.dev/preview/progress)
- [Component catalog](https://www.cyberspec.dev/components.md)
- [Progress source code](https://github.com/agnelnieves/cyberspec/blob/main/registry/cyber/ui/progress.tsx)
- [Shadcn registry item](https://www.cyberspec.dev/r/progress.json)
