progress
showcase-elevenlabs/progressFreeComponent
shadcn/ui publishes no description for this item.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/elevenlabs/showcase/main/apps/www/public/r/styles/new-york/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-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 }
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 |
