Skip to content

Glow badge

Small pill badge with an organic breathing pulse and cursor-mapped pastel glow border. Variants for success, warning, and error override the colour while keeping the same physics.

  • requestAnimationFrame
  • Sine Wave
  • pastelColour

glow-badge

ActiveShippedPendingFailedDisabled

Move your cursor near the badges.

Usage

Drop it in

import
import { GlowBadge } from "@/app/lib/components/glow-badge";
example 1
<GlowBadge>Active</GlowBadge>
<GlowBadge variant="success">Shipped</GlowBadge>
<GlowBadge variant="error" pulse={false}>Failed</GlowBadge>

API

Props

PropTypeDefault
children*ReactNode—
variant

Colour variant — default follows cursor, others use fixed accent colours

"default" | "success" | "warning" | "error""default"
pulse

Enable organic breathing pulse animation

booleantrue
className

Additional class names

string""

Read from the component's source at build time. * required.

Accessibility

Works with

Cursor
Reacts to where the pointer is, not just whether it's over the element.
Touch
Follows your finger while it's down, then settles a moment after you lift.
Keyboard
Focus lights it up the way the cursor does. Every action has a key.
Reduced motion
Nothing moves or springs. Colour still answers, without drifting.