FeedbackNew
Glass Progress
A glass progress bar for known values, with a sweeping state for unknown lengths.
Preview
Uploading35%
Demos ready. Update 0.
The preview runs the React version. On iOS 26 and later, the React Native version uses the system’s own glass. See it on a phone.
Installation
For React 19+ apps with Tailwind CSS 4.
npx shadcn@4.14.1 add @glassyui/glass-progressAdds 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} />;
}React Native usage
import { View } from 'react-native';
import { GlassProgress } from '@/components/glassyui/glass-progress';
export default function ProgressExample() {
return (
<View style={{ gap: 16 }}>
<GlassProgress label="Uploading" showValue value={35} />
{/* Without a value, the fill sweeps until the length is known. */}
<GlassProgress accessibilityLabel="Syncing" value={null} />
</View>
);
}
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.
| Prop | Type | Default | Description |
|---|---|---|---|
value | number | null | None | Progress toward max, clamped to 0–max; omit it or pass null when the length is unknown. |
max | number | 100 | The value that means complete. |
label | ReactNode | None | Text above the bar that also names it. |
showValue | boolean | false | Shows 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-labelledby | string | None | Names 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.
The React Native props and exports are in the component’s source.