Progress
Show how much of a known task is complete.
npx shadcn@latest add @silicon-ui/progressInstallation
With the shadcn CLI
npx shadcn@latest add @silicon-ui/progressManually
Install the dependencies
npm install lucide-react motionCopy these files into your project
- components/silicon-ui/progress/progress.tsx
- components/silicon-ui/progress/progress.module.css
Add the foundation, once per app, for the design and motion tokens
npx shadcn@latest add @silicon-ui/silicon-foundation
Usage
API reference
| Prop | Type | Default |
|---|---|---|
value | number | 0 |
max | number | 100 |
label | string | — |
showValue | boolean | false |
Also accepts the props of React.HTMLAttributes<HTMLDivElement>, except children.
Dependencies
- npm
- lucide-reactmotion
- Registry
- silicon-motion-tokens