Constellation
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-constellationAbout this component
On selection, five star dots appear around the option with SVG connecting lines forming a mini constellation. Each star twinkles with a looping opacity animation. Feels like the option is cosmically chosen.
Triggers
- Click
- State change
- Glow
- Ambient
Techniques
- Keyframes
- Transform only
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
Hidden native <input type="radio"> per option.
Reduced motion
Star twinkling animation skipped under prefers-reduced-motion.
Use it in anything you build, commercial and client work included. Licence