CraftUI

Progress

A progress bar for known and unknown amounts of work, with status tones.

Downloading pack
x

Installation

npx shadcn@latest add @runqora/craft-progress

Usage

import { Progress } from "@/components/craft/progress";

<Progress label="Downloading pack" showValue value={40} />;

Examples

Tones

Info
x
Primary
x
Warning
x
Destructive
x

Indeterminate

Pass null when you can't tell how much work is left. With reduced motion turned on, the bar shows a steady half-strength fill instead of moving.

Connecting
x
x

Custom color and thin bar

size="sm" is the thin loading bar from the Ore UI reference.

Custom color
x
x

Props

Prop

Type

Accessibility

  • Has the progressbar role, with its current value for screen readers.
  • label names the bar. Without one, pass aria-label.
  • Pair a tone with a label or message, since color alone doesn't say what happened.

Customization

color takes any CSS color, and a custom color replaces the highlights too. To restyle a tone everywhere, edit its tokens, such as --craft-info and --craft-info-hi.

Dependencies

Source

On this page