Tape

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/input-tape

About this component

A tag field on stitched kraft card: each tag you enter is punched out as a strip of embossed label tape in its own colour, feeding out letter by letter. The cursor blinks after the last strip; Enter or a comma adds a tag, Backspace or a click on a strip removes it.

Triggers

  • Focus
  • State change
  • Click
  • Keyframe

Techniques

  • Keyframes
  • clip-path
  • CSS variables
  • CSS transition
  • Pseudo elements
  • State machine

Difficulty

Advanced

Accessibility

Keyboard and screen readers

A native text input named by aria-label ("Add a tag"); every tag is a real button named "Remove" plus its text, with a :focus-visible outline, so tags can be reached and removed from the keyboard. Focus on the field is a solid ring round the card.

Reduced motion

Every transition and animation is switched off, so strips appear at once.

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

More inputs

See all
TerrazzoGet code
VaultGet code
VitroGet code
WashGet code