Component
Progress
A stable progress bar for budget pace, onboarding, and background work.
Preview
Installation
Install the package, then import the component and shared stylesheet in your app.
Package install
Install the package when you want components imported from axie-ui.
install
pnpm add axie-uiImport
code
import "axie-ui/styles.css";import { Progress } from "axie-ui";Registry install
Use the direct URL when you want shadcn to copy editable source into your app. This works without the official registry and does not install axie-ui.
registry
pnpm dlx shadcn@latest add https://axie.alexi.life/r/progress.jsonCopied source import
code
import "@/styles/axie.css";import { Progress } from "@/components/axie/progress";Prefer @axie/progress? Add the Axie namespace once from the Installation page, then use that shorthand.
Usage
code
import { Progress } from "axie-ui";export function Example() { return <Progress value={68} />;}Accessibility
- Use `aria-valuenow`, `aria-valuemin`, and `aria-valuemax` for determinate progress.
- Pair progress bars with text when the value affects a decision.
- Avoid animating progress indefinitely unless the work is actually indeterminate.
API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| value | number | - | Current progress value. |
| max | number | 100 | Maximum progress value. |
| tone | accent | danger | info | warning | accent | Semantic fill color. |