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 { Button, Reshaped, useToggle, View } from "reshaped/bundle";
import ProgressBar from "@/components/ui/reshaped-progress-bar";
function Component() {
const { active, toggle } = useToggle();
return (
<View gap={3}>
<View.Item>
<Button onClick={toggle}>Change value</Button>
</View.Item>
<ProgressBar value={active ? 100 : 0} duration={5000} />
</View>
);
}
export default function Demo() {
return (
<Reshaped theme="slate">
<div style={{ maxWidth: 400, width: "100%", margin: "0 auto", padding: 24 }}>
<Component />
</div>
</Reshaped>
);
}
Loading preview...
Loading preview...
Loading preview...
Loading preview...
Loading preview...