progress
gmhlab/progressFreeComponent
gmhlab publishes no description for this item.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/gmhlab/monorepo/main/packages/ui/public/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 "bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",18 className19 )}20 {...props}21 >22 <ProgressPrimitive.Indicator23 data-slot="progress-indicator"24 className="bg-primary h-full w-full flex-1 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 gmhlab
All 64 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordionaccordion | gmhlab | Components | Free | 2 deps | |
| alertalert | gmhlab | Components | Free | 1 dep | |
| alert-dialogalert-dialog | gmhlab | Components | Free | 1 dep | |
| aspect-ratioaspect-ratio | gmhlab | Components | Free | 1 dep | |
| avataravatar | gmhlab | Components | Free | 1 dep | |
| badgebadge | gmhlab | Components | Free | 2 deps | |
| breadcrumbbreadcrumb | gmhlab | Components | Free | 2 deps | |
| buttonbutton | gmhlab | Components | Free | 2 deps |
