progress
accelya-ui-lib/progressFreeComponent
shadcn/ui publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by shadcn/ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://raw.githubusercontent.com/ramsaoji/Accelya-UI-Lib/main/public/r/styles/default/progress.jsonSource
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-4 w-full overflow-hidden rounded-full bg-secondary",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 }
What it pulls in
npm packages
Files it writes
More from shadcn/ui
All 357 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordionaccordion | shadcn/ui | Components | Free | 1 dep | |
| alertalert | shadcn/ui | Components | Free | no deps | |
| alert-dialogalert-dialog | shadcn/ui | Components | Free | 1 dep | |
| aspect-ratioaspect-ratio | shadcn/ui | Components | Free | 1 dep | |
| avataravatar | shadcn/ui | Components | Free | 1 dep | |
| badgebadge | shadcn/ui | Components | Free | 1 dep | |
| breadcrumbbreadcrumb | shadcn/ui | Components | Free | 1 dep | |
| buttonbutton | shadcn/ui | Components | Free | 1 dep |
