Base Components
Progress Bar
A progress bar is a simple chart that can be used to show how complete something is.
Create a progress-bar.tsx
file and paste the following code into it.
/components/ui/progress-bar.tsx
Update the import paths to match your project setup.
Examples
Color
With Label
80%
Advanced
Data Storage80%
to unlock unlimited date storage.
API Reference
ProgressBar.Root
The main component of the ProgressBar. It displays the progress with a colored bar inside a container. This component is based on the <div>
element and supports all of its props and adds:
Prop | Type | Default |
---|---|---|
color | "blue" |"red" |"orange" |"green" | "blue" |
value | number | |
max | number |
© 2024 AlignUI Design System. All rights reserved.