progress
draco-china-github/progressFreeComponent
shadcn/ui publishes no description for this item.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/draco-china/shadcn-pro/main/apps/docs/public/r/styles/radix-sera/progress.jsonSource
1"use client"23import * as React from "react"4import { Progress as ProgressPrimitive } from "radix-ui"56import { cn } from "@/registry/radix-sera/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 flex h-0.5 w-full items-center overflow-x-hidden rounded-none bg-muted",18 className19 )}20 {...props}21 >22 <ProgressPrimitive.Indicator23 data-slot="progress-indicator"24 className="size-full flex-1 bg-primary transition-all"25 style={{ transform: `translateX(-${100 - (value || 0)}%)` }}26 />27 </ProgressPrimitive.Root>28 )29}3031export { Progress }
Files it writes
More from shadcn/ui
All 201 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| accordionaccordion | shadcn/ui | Components | Free | no deps | |
| alertalert | shadcn/ui | Components | Free | no deps | |
| alert-dialogalert-dialog | shadcn/ui | Components | Free | no deps | |
| aspect-ratioaspect-ratio | shadcn/ui | Components | Free | no deps | |
| avataravatar | shadcn/ui | Components | Free | no deps | |
| badgebadge | shadcn/ui | Components | Free | no deps | |
| breadcrumbbreadcrumb | shadcn/ui | Components | Free | no deps | |
| buttonbutton | shadcn/ui | Components | Free | no deps |
