Components
Progress bar controlled by a value within a 0-100 range by default, with custom min/max boundaries. Comes in medium and small sizes, primary/critical/warning/positive colors plus a media color for use over images and video, and a CSS-driven duration property for timeout animations.
npx @21st-dev/cli add reshaped/reshaped-progress-barLoading preview...
import { Image, Reshaped, View } from "reshaped/bundle";
import ProgressBar from "@/components/ui/reshaped-progress-bar";
export default function Demo() {
return (
<Reshaped theme="slate">
<div style={{ margin: "0 auto", padding: 24, display: "flex", justifyContent: "center" }}>
<View width="300px" maxWidth="100%" overflow="hidden" borderRadius="medium">
<Image
src="https://www.reshaped.so/img/examples/image-retina.webp"
aspectRatio={16 / 9}
alt="Static media example"
/>
<View position="absolute" insetTop={0} insetEnd={0}>
<ProgressBar value={50} color="media" size="small" />
</View>
</View>
</div>
</Reshaped>
);
}
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...