XP Bar

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/radio-xp-bar

About this component

Gaming-style XP progress bar fills left-to-right on selection with a gradient bar and particle burst effect. Selecting an option "awards XP": the bar charges from 0% to 100% and confetti sparks pop at the fill edge.

Triggers

  • Click
  • State change
  • Glow

Techniques

  • Keyframes
  • Gradient
  • Transform only

Difficulty

Advanced

Accessibility

Keyboard and screen readers

Hidden native <input type="radio"> per option.

Reduced motion

XP bar fill and spark animations skipped under prefers-reduced-motion.

Use it in anything you build, commercial and client work included. Licence

More radios

See all
AudienceGet code
Blend modeGet code
BlenderGet code
BreakpointGet code