Tear-off flyer

On every tab · Enter takes one

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/input-flyer

About this component

A phone number on a flyer taped to a wall: it is written down every tear-off tab along the fringe as you type, and Enter tears a tab off and lets it fall, the way people take one in passing.

Dependencies
None
Difficulty
Intermediate
Reduced motion
Respected
Theme
Light and dark
Follows page color-scheme

Triggers3

  • State change
  • Click
  • Delay stagger

Techniques4

  • Keyframes
  • clip-path
  • Transition delay stagger
  • CSS variables

Accessibility

Keyboard and screen readers

One native input named "Phone number" (type tel); the tabs are aria-hidden and the count of tabs taken is announced.

Reduced motion

Everything changes at once, without the motion.

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

More inputs

See all
InscriptionGet code
Server address

Waiting for a full address

IP addressGet code
Letterpress cardGet code
MelodyGet code