Our Tailwind CSS progressbar can be used to show a user how far along he is in a process. The progress can be determinate or indeterminate. Use the Progress Bar to show an ongoing process that takes a noticeable time to finish.
Below we are presenting our examples of Progress
component that you can use in your Tailwind CSS and React project. It comes in different styles and colors, so you can adapt it easily to your needs.
import { Progress } from "@material-tailwind/react";
export default function Example() {
return <Progress value={50} />;
}
The Progress
component comes with 2 different variants that you can change it using the color
prop.
import { Progress } from "@material-tailwind/react";
export default function Colors() {
return (
<div className="flex w-full flex-col gap-4">
<Progress value={50} variant="filled" />
<Progress value={50} variant="gradient" />
</div>
);
}
The Progress
component comes with 19 different colors that you can change it using the color
prop, below there are some examples of the colors but you can check all of the them here.
import { Progress } from "@material-tailwind/react";
export default function Colors() {
return (
<div className="flex w-full flex-col gap-4">
<Progress value={50} color="blue" />
<Progress value={50} color="red" />
<Progress value={50} color="green" />
<Progress value={50} color="amber" />
<Progress value={50} color="teal" />
<Progress value={50} color="indigo" />
<Progress value={50} color="purple" />
<Progress value={50} color="pink" />
</div>
);
}
import { Progress } from "@material-tailwind/react";
export default function Example() {
return <Progress value={50} label="Completed" />;
}