Glass Progress
washiveil/glass-progressFreeComponent
Progress bar with a ruri fill on a glass track, built on Radix Progress.
Install it
npx shadcn@latest add https://washiveil.alexchih.com/r/glass-progress.jsonSource
1'use client';23import * as React from 'react';4import { Progress as ProgressPrimitive } from 'radix-ui';56import { cn } from '@/lib/utils';78const GlassProgress = React.forwardRef<9 React.ComponentRef<typeof ProgressPrimitive.Root>,10 React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>11>(({ className, value, ...props }, ref) => (12 <ProgressPrimitive.Root13 ref={ref}14 value={value}15 className={cn('h-2 w-full overflow-hidden rounded-full border border-glass-edge bg-glass backdrop-blur', className)}16 {...props}17 >18 <ProgressPrimitive.Indicator19 className="h-full rounded-full bg-ruri transition-transform dark:bg-ruri-soft"20 style={{ transform: `translateX(-${100 - (value || 0)}%)` }}21 />22 </ProgressPrimitive.Root>23));24GlassProgress.displayName = ProgressPrimitive.Root.displayName;2526export { GlassProgress };
What it pulls in
npm packages
Other registry items
Files it writes
More from washiveil
All 58 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Ambient Fieldambient-field | washiveil | Components | Free | no deps | |
| Chipchip | washiveil | Components | Free | 1 dep | |
| Code Badgecode-badge | washiveil | Components | Free | no deps | |
| Glass Accordionglass-accordion | washiveil | Components | Free | 2 deps | |
| Glass Alertglass-alert | washiveil | Components | Free | 1 dep | |
| Glass Alert Dialogglass-alert-dialog | washiveil | Components | Free | 1 dep | |
| Glass Aspect Ratioglass-aspect-ratio | washiveil | Components | Free | 1 dep | |
| Glass Avatarglass-avatar | washiveil | Components | Free | 1 dep |
