Progress

Show how much of a known task is complete.

npx shadcn@latest add @silicon-ui/progress
statusloading
Loading…

Installation

With the shadcn CLI

npx shadcn@latest add @silicon-ui/progress

Manually

  1. Install the dependencies.

    npm install lucide-react motion
  2. Copy these files into your project. Shared files are skipped if you already have them.

    • components/silicon-ui/progress/progress.tsx
    • components/silicon-ui/progress/progress.module.css
  3. Install the foundation once per app for the design and motion tokens: npx shadcn@latest add @silicon-ui/silicon-foundation

Usage

Source codetsx
import { Progress } from "@/components/silicon-ui/progress/progress";

API reference

PropTypeDefault
valuenumber0
maxnumber100
labelstring—
showValuebooleanfalse

Also accepts the props of React.HTMLAttributes<HTMLDivElement>, except children.

Dependencies

npm
lucide-reactmotion
Registry
silicon-motion-tokens