Browse docsProgress

FeedbackNew

Glass Progress

A glass progress bar for known values, with a sweeping state for unknown lengths.

Preview

Uploading35%

Demos ready. Update 0.

Installation

For React 19+ apps with Tailwind CSS 4.

npx shadcn@4.14.1 add @glassyui/glass-progress

Adds 5 files to components/glassyui and installs clsx.

Usage

Usage

import { GlassProgress } from "@/components/glassyui/glass-progress";

export function UploadDemo() {
  return <GlassProgress label="Uploading" showValue value={62} />;
}

Examples

Unknown length

<GlassProgress aria-label="Working" value={null} />
Sizes

<GlassProgress size="sm" value={30} aria-label="Small" />
<GlassProgress size="lg" value={70} aria-label="Large" />

API reference

GlassProgress

A progressbar track with an optional label row above it.

PropTypeDefaultDescription
valuenumber | nullNoneProgress toward max, clamped to 0–max; omit it or pass null when the length is unknown.
maxnumber100The value that means complete.
labelReactNodeNoneText above the bar that also names it.
showValuebooleanfalseShows the rounded percentage beside the label while the value is known.
size'sm' | 'md' | 'lg''md'Track height: 0.25rem, 0.5rem or 0.75rem.
aria-label / aria-labelledbystringNoneNames the bar when there is no visible label; applied to the progressbar track, not the outer div.

Also accepts HTML div attributes, except children.

Types
GlassProgressPropsGlassProgressSize
Accessibility
Give the bar a label, aria-label or aria-labelledby; an unknown length leaves out aria-valuenow.