Barcode

Scans as a valid code

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/input-barcode

About this component

A product code on a barcode label: the thirteen digits under the bars are the field and the bars are the real EAN-13 encoding, so typing raises them; the check digit is worked out and offered, then the code is scanned.

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

Triggers3

  • State change
  • Keyframe
  • Delay stagger

Techniques3

  • State machine
  • Transition delay stagger
  • Keyframes

Accessibility

Keyboard and screen readers

One native input with inputmode="numeric" named "Item code, 13 digits", aria-invalid on a wrong check digit, and a polite status line.

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

2026 is cut as MMXXVI

CornerstoneGet code

3 AcrossCircle round a planet (5)

2 of 5 letters

CrosswordGet code

Kind: Video

File nameGet code

On every tab · Enter takes one

Tear-off flyerGet code