BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/shadcn-glass-ui/base-progress-glass

Base Progress Glass

shadcn-glass-ui/base-progress-glass
FreeComponent

Base progress bar component used as foundation for:

Install it

npx shadcn@latest add https://raw.githubusercontent.com/artyhoo/shadcn-glass-ui-library/main/public/r/base-progress-glass.json

Source

components/glass/specialized/base-progress-glass.tsxraw.githubusercontent.com/artyhoo/shadcn-glass-ui-library/main/public/r/base-progress-glass.json
1/**
2 * BaseProgressGlass Component
3 *
4 * Base progress bar component used as foundation for:
5 * - ProgressGlass (standard progress bar)
6 * - RainbowProgressGlass (gradient progress bar)
7 *
8 * Features:
9 * - Theme-aware styling
10 * - Percentage calculation
11 * - Accessible (ARIA progressbar)
12 * - Customizable through children render prop
13 */
14
15import { forwardRef, type ReactNode } from 'react';
16import { cn } from '@/lib/utils';
17import '@/glass-theme.css';
18
19// ========================================
20// PROPS INTERFACE
21// ========================================
22
23export interface BaseProgressGlassProps
24 extends Omit<React.HTMLAttributes<HTMLDivElement>, 'children'> {
25 readonly value?: number;
26 readonly max?: number;
27 readonly children?: ReactNode | ((percentage: number) => ReactNode);
28}
29
30// ========================================
31// COMPONENT
32// ========================================
33
34export const BaseProgressGlass = forwardRef<HTMLDivElement, BaseProgressGlassProps>(
35 ({ value = 0, max = 100, className, children, ...props }, ref) => {
36 const percentage = Math.min(100, Math.max(0, (value / max) * 100));
37
38 return (
39 <div
40 ref={ref}
41 className={cn(
42 'relative h-2 w-full overflow-hidden rounded-full',
43 'bg-white/5 backdrop-blur-sm',
44 className
45 )}
46 role="progressbar"
47 aria-valuenow={value}
48 aria-valuemin={0}
49 aria-valuemax={max}
50 aria-valuetext={`${Math.round(percentage)}%`}
51 {...props}
52 >
53 {typeof children === 'function'
54 ? children(percentage)
55 : children || (
56 <div
57 className="h-full transition-all duration-300 ease-out"
58 style={{
59 width: `${percentage}%`,
60 background: 'var(--progress-bar-bg, linear-gradient(90deg, #a855f7, #ec4899))',
61 }}
62 />
63 )}
64 </div>
65 );
66 }
67);
68
69BaseProgressGlass.displayName = 'BaseProgressGlass';

Facts

Registry
shadcn-glass-ui
Type
registry:component
Access
Free
Files written
0
Licence
Apache-2.0
In the index
at or before 2026-08-10
Last confirmed
today

Go to the source

yhooi2.github.io artyhoo/shadcn-glass-ui-library on GitHub Raw registry item This item as JSON

More from shadcn-glass-ui

All 76 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Alert Glassalert-glassshadcn-glass-uiComponentsFreeno deps
Animated Background Glassanimated-background-glassshadcn-glass-uiComponentsFreeno deps
Avatar Glassavatar-glassshadcn-glass-uiComponentsFreeno deps
Badge Glassbadge-glassshadcn-glass-uiComponentsFreeno deps
Button Glassbutton-glassshadcn-glass-uiComponentsFreeno deps
Card Glasscard-glassshadcn-glass-uiComponentsFreeno deps
Checkbox Glasscheckbox-glassshadcn-glass-uiComponentsFreeno deps
Circular Progress Glasscircular-progress-glassshadcn-glass-uiComponentsFreeno deps

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

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

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex