progress
shadcn/progressFreeComponent
shadcn publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by shadcn on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add progressSource
1"use client"23import * as React from "react"4import * as ProgressPrimitive from "@radix-ui/react-progress"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-primary/20",16 className17 )}18 {...props}19 >20 <ProgressPrimitive.Indicator21 className="h-full w-full flex-1 bg-primary transition-all"22 style={{ transform: `translateX(-${100 - (value || 0)}%)` }}23 />24 </ProgressPrimitive.Root>25))26Progress.displayName = ProgressPrimitive.Root.displayName2728export { Progress }
Files it writes
More from shadcn
All 62 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordionaccordion | shadcn | Components | Free | no deps | |
| alertalert | shadcn | Components | Free | no deps | |
| alert-dialogalert-dialog | shadcn | Components | Free | no deps | |
| aspect-ratioaspect-ratio | shadcn | Components | Free | no deps | |
| attachmentattachment | shadcn | Components | Free | no deps | |
| avataravatar | shadcn | Components | Free | no deps | |
| badgebadge | shadcn | Components | Free | no deps | |
| breadcrumbbreadcrumb | shadcn | Components | Free | no deps |
