BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/basecn/progress

Progress

basecn/progress
FreeComponent

Displays an indicator showing the completion progress of a task, typically displayed as a progress bar.

Live preview

live · rendered by the registry
Rendered by basecn on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://basecn.dev/r/progress.json

Source

src/registry/components/ui/progress.tsxbasecn.dev/r/progress.json
1"use client";
2
3import { Progress as ProgressPrimitive } from "@base-ui/react/progress";
4import * as React from "react";
5
6import { cn } from "@/lib/utils";
7
8function Progress({
9 className,
10 children,
11 ...props
12}: ProgressPrimitive.Root.Props) {
13 return (
14 <ProgressPrimitive.Root
15 data-slot="progress"
16 className={cn("relative w-full", className)}
17 {...props}
18 >
19 {children ? (
20 children
21 ) : (
22 <ProgressTrack>
23 <ProgressIndicator />
24 </ProgressTrack>
25 )}
26 </ProgressPrimitive.Root>
27 );
28}
29
30function ProgressTrack({ className, ...props }: ProgressPrimitive.Track.Props) {
31 return (
32 <ProgressPrimitive.Track
33 data-slot="progress-track"
34 className={cn(
35 "bg-primary/20 w-full h-2 overflow-hidden rounded-full",
36 className
37 )}
38 {...props}
39 />
40 );
41}
42
43function ProgressIndicator({
44 className,
45 ...props
46}: ProgressPrimitive.Indicator.Props) {
47 return (
48 <ProgressPrimitive.Indicator
49 data-slot="progress-indicator"
50 className={cn(
51 "bg-primary h-full w-full flex-1 transition-all",
52 className
53 )}
54 {...props}
55 />
56 );
57}
58
59function ProgressLabel({ className, ...props }: ProgressPrimitive.Label.Props) {
60 return (
61 <ProgressPrimitive.Label
62 data-slot="progress-label"
63 className={cn("text-sm text-muted-foreground", className)}
64 {...props}
65 />
66 );
67}
68
69function ProgressValue({ className, ...props }: ProgressPrimitive.Value.Props) {
70 return (
71 <ProgressPrimitive.Value
72 data-slot="progress-value"
73 className={cn("text-sm text-muted-foreground", className)}
74 {...props}
75 />
76 );
77}
78
79export {
80 Progress,
81 ProgressIndicator,
82 ProgressLabel,
83 ProgressTrack,
84 ProgressValue,
85};

What it pulls in

npm packages

  • @base-ui/react

Files it writes

  • src/registry/components/ui/progress.tsx

Facts

Registry
basecn
Type
registry:ui
Access
Free
Files written
1
Licence
the repository states none
First indexed
2026-08-02
Last confirmed
yesterday

Go to the source

Docs on basecn basecn.dev akash3444/basecn on GitHub Raw registry item This item as JSON

More from basecn

All 56 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
AccordionaccordionbasecnComponentsFree2 deps
AlertalertbasecnComponentsFree1 dep
Alert Dialogalert-dialogbasecnComponentsFree1 dep
Aspect Ratioaspect-ratiobasecnComponentsFreeno deps
AutocompleteautocompletebasecnComponentsFree2 deps
AvataravatarbasecnComponentsFree1 dep
BadgebadgebasecnComponentsFree2 deps
BreadcrumbbreadcrumbbasecnComponentsFree2 deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex