Xylo
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-xyloAbout this component
A toy xylophone: five lacquered bars, long to short, on two rails. The bar you pick is struck, dips and rings, and the mallet comes to rest on it.
Triggers
- Click
- State change
- Keyframe
Techniques
- Keyframes
- CSS variables
- Radial gradient
- Pseudo elements
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
Native radios in a fieldset with a visually hidden legend ("Note"), each in a <label> and named by aria-label (C to G); the bars, rails and mallet are aria-hidden. :focus-visible outlines the bar.
Reduced motion
The strike and ring are switched off and the mallet is shown resting on the picked bar.
Use it in anything you build, commercial and client work included. Licence