Circular Progress Glass
shadcn-glass-ui/circular-progress-glassFreeComponent
SVG-based circular progress indicator with gradient colors and glow effects. * Supports both determinate (0-100%) and indeterminate (spinner) variants. * * ## Features
Install it
npx shadcn@latest add https://raw.githubusercontent.com/artyhoo/shadcn-glass-ui-library/main/public/r/circular-progress-glass.jsonSource
1/**2 * CircularProgressGlass Component3 *4 * SVG-based circular progress indicator with gradient colors and glow effects.5 * Supports both determinate (0-100%) and indeterminate (spinner) variants.6 *7 * ## Features8 * - Determinate (0-100%) and indeterminate (spinner) variants9 * - 4 sizes: sm (64px), md (96px), lg (128px), xl (160px)10 * - 6 gradient colors: violet, blue, cyan, amber, emerald, rose11 * - Configurable stroke thickness and track width12 * - Optional center label (percentage or custom text)13 * - SVG glow filters with 3 intensity levels (low, medium, high)14 * - Smooth transitions with configurable animation duration15 * - Theme-aware styling via CSS variables16 * - Screen reader accessible with ARIA progressbar17 *18 * ## CSS Variables19 * Customize colors via theme CSS variables:20 * - `--progress-bg`: Progress bar background color21 * - `--progress-glow`: Default glow color22 * - `--progress-glow-violet`: Glow for violet gradient23 * - `--progress-glow-blue`: Glow for blue gradient24 * - `--progress-glow-cyan`: Glow for cyan gradient25 * - `--progress-glow-amber`: Glow for amber gradient26 * - `--progress-glow-emerald`: Glow for emerald gradient27 * - `--progress-glow-rose`: Glow for rose gradient28 *29 * @example Determinate progress with default settings30 * ```tsx31 * import { CircularProgressGlass } from 'shadcn-glass-ui'32 *33 * function UploadProgress() {34 * const [progress, setProgress] = React.useState(0)35 *36 * return (37 * <CircularProgressGlass value={progress} color="violet" />38 * )39 * }40 * ```41 *42 * @example Indeterminate spinner43 * ```tsx44 * <CircularProgressGlass variant="indeterminate" showLabel={false} />45 * ```46 *47 * @example With custom label and color48 * ```tsx49 * <CircularProgressGlass50 * value={75}51 * label="Loading..."52 * color="emerald"53 * showLabel={true}54 * />55 * ```56 *57 * @example Large size with high glow intensity58 * ```tsx59 * <CircularProgressGlass60 * value={80}61 * size="xl"62 * color="cyan"63 * glowIntensity="high"64 * thickness={12}65 * />66 * ```67 *68 * @accessibility69 * - Uses ARIA `role="progressbar"` for screen reader support70 * - Provides `aria-valuenow`, `aria-valuemin`, `aria-valuemax` for determinate variant71 * - Includes `aria-label` and `aria-valuetext` for context72 * - Visual indicator uses `aria-hidden="true"` (screen readers use hidden progressbar)73 * - Custom label text overrides default percentage announcement74 *75 * @since v1.0.076 */7778import { forwardRef, useMemo, useId } from 'react';79// … truncated
More from shadcn-glass-ui
All 76 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Alert Glassalert-glass | shadcn-glass-ui | Components | Free | no deps | |
| Animated Background Glassanimated-background-glass | shadcn-glass-ui | Components | Free | no deps | |
| Avatar Glassavatar-glass | shadcn-glass-ui | Components | Free | no deps | |
| Badge Glassbadge-glass | shadcn-glass-ui | Components | Free | no deps | |
| Base Progress Glassbase-progress-glass | shadcn-glass-ui | Components | Free | no deps | |
| Button Glassbutton-glass | shadcn-glass-ui | Components | Free | no deps | |
| Card Glasscard-glass | shadcn-glass-ui | Components | Free | no deps | |
| Checkbox Glasscheckbox-glass | shadcn-glass-ui | Components | Free | no deps |
