Ribbons

Ribbon
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/radio-ribbons

About 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

More radios

See all
Paper size
RisoGet code
Range
SegmentGet code
Are you coming?
SketchGet code
Payment method
SlabGet code