Letterpress

Quantity
No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/radio-letterpress

About this component

A quantity picker of four numbered rounds debossed into cotton paper. The one you pick is pressed deeper and inked vermilion, with the number left in bare paper.

Triggers

  • Click
  • State change
  • Fill
  • Keyframe

Techniques

  • Keyframes
  • Pseudo elements
  • CSS transition

Difficulty

Beginner

Accessibility

Keyboard and screen readers

Native radios in a fieldset with a visually hidden legend ("Quantity"), each in a <label> and named by aria-label ("50 cards" to "500 cards"); the printed numbers are aria-hidden. :focus-visible outlines the round.

Reduced motion

The press is skipped and the ink appears at once.

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

More radios

See all
Spice level
MemphisGet code
Destination
MetroGet code
Drive mode
OutrunGet code
Paint
PansGet code