Progress

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

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.

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

Example

"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

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

Resources

View as Markdown