What problem does it solve?
React interfaces often lack clear, restrained visual feedback for loading, selected, current, focus, and pressed states, leaving users unsure whether an action is processing or an item is active.
Core Features & Use Cases
- State-driven beam effects: Wire the border-beam package's traveling and breathing glow presets (sm, md, line, pulse-inner, pulse-outside) to loading, selected, focus, and active states with recommended strength and duration values.
- Accessibility and reduced motion: Pair every beam with correct ARIA semantics (aria-busy, aria-selected, aria-current, aria-pressed) and disable animation under prefers-reduced-motion with static fallbacks.
- Layout and performance guardrails: Handle wrapper sizing, border-radius detection, overflow clipping, pulse-outside halo spacing, and one-dominant-beam-per-viewport restraint.
- Use Case: A task card in a Next.js app shows a breathing ocean glow with aria-busy while generating layout options, then fades out and switches to a quiet static selected style when complete.
Quick Start
Use the beam-glow-states skill to add a restrained loading and selected beam glow to this React card component.