Ribbons
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-ribbonsAbout this component
Five satin ribbons hanging from a brass rail, cut short. The one you pick unrolls to twice the length with a swallowtail end and sways once as it settles.
Triggers
- Click
- State change
- Hover
- Keyframe
Techniques
- clip-path
- CSS transition
- Keyframes
- Gradient
- CSS variables
Difficulty
Beginner
Accessibility
Keyboard and screen readers
Native radios in a fieldset with a visually hidden legend ("Ribbon"), each in a <label> and named by aria-label (the colour name); the ribbons and rail are aria-hidden. :focus-visible outlines the ribbon.
Reduced motion
The ribbon is shown at full length at once, with no sway.
Use it in anything you build, commercial and client work included. Licence