Groovy
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-groovyAbout this component
A seventies mood picker: Mellow, Groovy and Funky as fat outlined pills on a cream panel, each with a daisy for its radio. The pill you pick floods with its colour, retro rainbow stripes slide in at its end, and its daisy blooms and turns.
Triggers
- Click
- State change
- Fill
- Spring
- Loop
Techniques
- clip-path
- SVG
- Keyframes
- CSS transition
- CSS variables
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
Native radios in a fieldset with a visually hidden legend ("Mood"), each in a <label> with its visible name (Mellow, Groovy, Funky); the daisies and stripes are aria-hidden. :focus-visible outlines the pill.
Reduced motion
The flood, stripes and bloom are switched off and the picked pill is shown coloured at once.
Use it in anything you build, commercial and client work included. Licence