Skip to main content

ProgressBar

The ProgressBar component is a visual indicator that shows the progress of a task or operation.

Basic Usage

import { ProgressBar, ThemeProvider } from "@carton-org/react-neumorphism";

const MyComponent = () => {
return <ProgressBar progress={75} label="Loading..." showLabel />;
};

Live Example

Loading...75%

Props

NameTypeDescriptionRequiredDefault Value
progressnumberProgress value (0-100)Yes-
labelstringText label for the progress barNo-
showLabelbooleanWhether to display the labelNofalse
size"xs" | "sm" | "md" | "lg" | "xl"Size of the progress barNo"sm"
insetLabelbooleanWhether to use inset style for the labelNofalse
progressBarColorReact.CSSProperties["color"]Custom color for the progress barNo-

Examples

Different Sizes

Small Size

Small Progress75%

Medium Size

Medium Progress75%

Large Size

Large Progress75%

Different Progress Values

25% Progress

Quarter Complete25%

50% Progress

Halfway There50%

100% Progress

Complete100%

With Inset Label

Inset Label
75%

Custom Progress Bar Color

Custom Color75%