Progress
glasswave/progressFreeComponent
Displays an indicator showing the completion progress of a task.
Live preview
live · rendered by the registry
Rendered by glasswave on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://glasswave.denizisik.com/r/progress.jsonSource
1"use client";23import * as ProgressPrimitive from "@radix-ui/react-progress";4import * as React from "react";56import { cn } from "@/lib/utils";78const Progress = React.forwardRef<9 React.ElementRef<typeof ProgressPrimitive.Root>,10 React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>11>(({ className, value, ...props }, ref) => (12 <ProgressPrimitive.Root13 ref={ref}14 className={cn(15 "relative h-2 w-full overflow-hidden rounded-full bg-gray-200 dark:bg-white/10",16 className,17 )}18 {...props}19 >20 <ProgressPrimitive.Indicator21 className="h-full w-full flex-1 bg-[#007AFF] transition-all"22 style={{ transform: `translateX(-${100 - (value || 0)}%)` }}23 />24 </ProgressPrimitive.Root>25));26Progress.displayName = ProgressPrimitive.Root.displayName;2728export { Progress };
What it pulls in
npm packages
Files it writes
More from glasswave
All 60 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | glasswave | Components | Free | 2 deps | |
| Alertalert | glasswave | Components | Free | 1 dep | |
| Alert Dialogalert-dialog | glasswave | Components | Free | 1 dep | |
| Aspect Ratioaspect-ratio | glasswave | Components | Free | 1 dep | |
| Avataravatar | glasswave | Components | Free | 1 dep | |
| Badgebadge | glasswave | Components | Free | 1 dep | |
| Breadcrumbbreadcrumb | glasswave | Components | Free | 2 deps | |
| Buttonbutton | glasswave | Components | Free | 2 deps |
