Skip to content

Progress

Show how much of a known task is complete.

StatusLoading
npx shadcn@latest add @silicon-ui/progress

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

    • components/silicon-ui/progress/progress.tsx
    • components/silicon-ui/progress/progress.module.css
  3. Add the foundation, once per app, for the design and motion tokens

    npx shadcn@latest add @silicon-ui/silicon-foundation

Usage

usage.tsx
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