Skip to main content

Progress

Quick start

Here's a quick start guide to get started with the Progress component, Progress are for indicating progress usually out of 100.

Importing Component

import { Progress } from "@hover-design/react";

Code Snippets and Examples

Simple Progress
import { Progress } from "@hover-design/react";

const Demo = () => {
return <Progress value={90} />;
};
Progress Sizes
const Demo = () => {
return (
<Progress value={20} size="sm" />
<Progress value={30} size="md" />
<Progress value={40} size="lg" />
<Progress value={50} size="xl" />
<Progress value={60} size="64px" />);
};
Progress Radius
const Demo = () => {
return (
<Progress value={50} radius="sm" />
<Progress value={30} radius="md" />
<Progress value={20} radius="lg" />
<Progress value={100} radius="xl" />
<Progress value={60} radius="64px" />);
};
Progress Color change and Base Styles
const Demo = () => {
return <Progress progressColor="red" value={20} radius="sm" />;
};
const Demo = () => {
return (
<Progress
progressBaseStyles={{ backgroundColor: "blue" }}
progressColor="red"
value={20}
radius="sm"
/>
);
};

Progress Props Reference

KeytypeOptional?
valuenumberNo
progressSizexs sm md lg xl stringYes
progressRadiusxs sm md lg xl stringYes
progressBaseStylesReact Style ObjectYes
progressBaseClassNamestringYes
progressColorstringYes