Comic

Answer
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/radio-comic

About this component

Comic-book answer blocks: A, B and C in thick black outlines with hard offset shadows. Picking one punches it down onto its shadow, floods it with flat colour and throws three action lines off its corner.

Triggers

  • Click
  • State change
  • Keyframe

Techniques

  • Transform only
  • Radial gradient
  • Keyframes
  • SVG stroke
  • CSS variables

Difficulty

Beginner

Accessibility

Keyboard and screen readers

Native radios in a fieldset with a visually hidden legend ("Answer"), each in a <label> and named by aria-label ("Answer A" to "Answer C"); the blocks are aria-hidden. :focus-visible draws a dashed outline.

Reduced motion

The transitions and the pop are switched off.

Use it in anything you build, commercial and client work included. Licence

More radios

See all
Crayon
CrayonsGet code
Seating
DecoGet code
Colour palette
DialogGet code
Visibility
Dog-earGet code