Outrun
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-outrunAbout this component
A three-way segmented radio in synthwave style: italic labels on a night-purple panel with a neon edge. A striped sunset slab glides under the mode you pick and its bands keep rolling.
Triggers
- Click
- State change
- Neon
- Loop
Techniques
- Transform only
- Keyframes
- Gradient
- Pseudo elements
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
Native radios in a fieldset with a visually hidden legend ("Drive mode"), each inside a <label> and named by its visible text; the slab is aria-hidden. The focused segment is outlined.
Reduced motion
The bands stop and the slab jumps to the picked segment.
Use it in anything you build, commercial and client work included. Licence