Menu

Progress

Linear progress bar. 5 values.

Installation

$ npx uix-ui@latest add progress

This copies the file into components/ui/progress.tsx in your project. npx shadcn@latest add @uix/progress works too.

Usage

progress.tsx
import { Progress } from "@/components/ui/progress";

<div style={{ width: 320, maxWidth: "100%" }}>
  <Progress value={64} aria-label="Order progress" />
</div>

Examples

Live

20% packed

Empty to full

Props

PropTypeDefaultDescription
valuenumber00 to 100.

Everything else is passed to the root element, so className, aria-* and event handlers work as usual.

Dependencies

Installed for you by the CLI.

  • class-variance-authority
  • clsx
  • tailwind-merge
  • lib/utils.ts
esc

↑↓ to navigate · ↵ to select · esc to close