Progress
uiable/progressFreeComponent
Progress component.
Live preview
live · rendered by the registry
Rendered by uiable on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://uiable.com/r/progress.jsonSource
1"use client";23import { Progress as ProgressPrimitive } from "@base-ui/react/progress";45import { cn } from "@/lib/utils";67function Progress({8 className,9 children,10 value,11 ...props12}: ProgressPrimitive.Root.Props) {13 return (14 <ProgressPrimitive.Root15 value={value}16 data-slot="progress"17 className={cn("flex flex-wrap gap-3", className)}18 {...props}19 >20 {children}21 <ProgressTrack>22 <ProgressIndicator />23 </ProgressTrack>24 </ProgressPrimitive.Root>25 );26}2728function ProgressTrack({ className, ...props }: ProgressPrimitive.Track.Props) {29 return (30 <ProgressPrimitive.Track31 className={cn(32 "bg-muted relative flex h-1 w-full items-center overflow-x-hidden rounded-lg",33 className34 )}35 data-slot="progress-track"36 {...props}37 />38 );39}4041function ProgressIndicator({42 className,43 ...props44}: ProgressPrimitive.Indicator.Props) {45 return (46 <ProgressPrimitive.Indicator47 data-slot="progress-indicator"48 className={cn("bg-primary h-full transition-all", className)}49 {...props}50 />51 );52}5354function ProgressLabel({ className, ...props }: ProgressPrimitive.Label.Props) {55 return (56 <ProgressPrimitive.Label57 className={cn("text-sm font-medium", className)}58 data-slot="progress-label"59 {...props}60 />61 );62}6364function ProgressValue({ className, ...props }: ProgressPrimitive.Value.Props) {65 return (66 <ProgressPrimitive.Value67 className={cn(68 "text-muted-foreground ml-auto text-sm tabular-nums",69 className70 )}71 data-slot="progress-value"72 {...props}73 />74 );75}7677export {78 Progress,79 ProgressTrack,80 ProgressIndicator,81 ProgressLabel,82 ProgressValue83};
What it pulls in
npm packages
Files it writes
More from uiable
All 712 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Accordionaccordion | uiable | Components | Free | 2 deps | |
| Alertalert | uiable | Components | Free | 1 dep | |
| Alert Dialogalert-dialog | uiable | Components | Free | 1 dep | |
| Aspect Ratioaspect-ratio | uiable | Components | Free | no deps | |
| Attachmentattachment | uiable | Components | Free | 2 deps | |
| Avataravatar | uiable | Components | Free | 1 dep | |
| Badgebadge | uiable | Components | Free | 2 deps | |
| Breadcrumbbreadcrumb | uiable | Components | Free | 2 deps |
