progress
gr8monk3ys/progressFreeComponent
progress (identity-styled).
Install it
npx shadcn@latest add https://ui.lscaturchio.xyz/r/progress.jsonSource
1"use client"23import * as React from "react"4import { Progress as ProgressPrimitive } from "radix-ui"56import { cn } from "@/lib/utils"78function Progress({9 className,10 value,11 ...props12}: React.ComponentProps<typeof ProgressPrimitive.Root>) {13 return (14 <ProgressPrimitive.Root15 data-slot="progress"16 className={cn(17 "relative h-2 w-full overflow-hidden rounded-full bg-primary/20",18 className19 )}20 {...props}21 >22 <ProgressPrimitive.Indicator23 data-slot="progress-indicator"24 className="h-full w-full flex-1 bg-primary transition-all"25 style={{ transform: `translateX(-${100 - (value || 0)}%)` }}26 />27 </ProgressPrimitive.Root>28 )29}3031export { Progress }
What it pulls in
npm packages
Files it writes
More from gr8monk3ys
All 69 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | gr8monk3ys | Components | Free | 2 deps | |
| ActiveNavLinkactive-nav-link | gr8monk3ys | Components | Free | no deps · 2 files | |
| alertalert | gr8monk3ys | Components | Free | 1 dep | |
| alert-dialogalert-dialog | gr8monk3ys | Components | Free | 1 dep | |
| aspect-ratioaspect-ratio | gr8monk3ys | Components | Free | 1 dep | |
| attachmentattachment | gr8monk3ys | Components | Free | 2 deps | |
| Avataravatar | gr8monk3ys | Components | Free | 1 dep | |
| Badgebadge | gr8monk3ys | Components | Free | 1 dep |
