XP Bar
Markup where the component goes, CSS in your stylesheet. No JavaScript.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/radio-xp-barAbout 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