Stepper Glass
shadcn-glass-ui/stepper-glassFreeComponent
StepperGlass Component (Compound API)
Install it
npx shadcn@latest add https://raw.githubusercontent.com/artyhoo/shadcn-glass-ui-library/main/public/r/stepper-glass.jsonSource
1/* eslint-disable react-refresh/only-export-components */2/**3 * StepperGlass Component (Compound API)4 *5 * Glass-themed step indicator for multi-step workflows with theme-aware styling6 * and full accessibility support.7 *8 * ## Features9 * - Theme-aware glassmorphism styling (glass/light/aurora)10 * - Horizontal and vertical orientations11 * - Three visual variants: numbered, icon, dots12 * - Three sizes: small, medium, large13 * - Linear mode to lock future steps14 * - Animated connector lines between steps15 * - Compound component API for maximum flexibility16 * - Keyboard navigation with arrow keys17 * - 44x44px minimum touch targets (WCAG 2.5.5)18 * - Custom icons and completed icon overrides19 *20 * ## Sub-Components21 * - **StepperGlass.Root** - Context provider with value/onValueChange22 * - **StepperGlass.List** - Visual container for step triggers (uses `role="tablist"`)23 * - **StepperGlass.Step** - Individual step button with indicator and label24 * - **StepperGlass.Content** - Content panel for each step (uses `role="tabpanel"`)25 *26 * ## CSS Variables27 * Customize appearance via theme CSS variables:28 * - `--stepper-step-bg` - Pending step background29 * - `--stepper-step-active-bg` - Active step background30 * - `--stepper-step-completed-bg` - Completed step background (purple gradient)31 * - `--stepper-step-disabled-bg` - Disabled step background32 * - `--stepper-step-border` - Step indicator border33 * - `--stepper-step-active-border` - Active step border with subtle glow34 * - `--stepper-step-completed-border` - Completed step border35 * - `--stepper-step-disabled-border` - Disabled step border (muted)36 * - `--stepper-step-text` - Step number/icon text color37 * - `--stepper-step-active-text` - Active step text (purple)38 * - `--stepper-step-completed-text` - Completed step text (white)39 * - `--stepper-step-disabled-text` - Disabled step text (muted)40 * - `--stepper-connector-bg` - Connector line background (default)41 * - `--stepper-connector-active-bg` - Connector line background (completed, purple)42 * - `--stepper-step-glow` - Completed step glow effect43 * - `--stepper-step-active-glow` - Active step glow effect44 * - `--stepper-label-text` - Label text color45 * - `--stepper-description-text` - Description text color (subtle)46 *47 * @example Basic usage (numbered variant)48 * ```tsx49 * import { StepperGlass } from 'shadcn-glass-ui'50 *51 * function Wizard() {52 * const [step, setStep] = useState('step1')53 *54 * return (55// … 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 |
