2026 is cut as MMXXVI
Barcode
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initFieldBarcode(el) on the mounted element instead.
Paste into Claude, ChatGPT or Cursor after filling in {{USER_STACK}}, {{USER_STYLING}} and {{USER_CONSTRAINTS}}. Neutral keeps the greys you see here; Match my project asks the model to map them onto your own colour tokens.
Install with shadcn
Needs a free account token. Get a token
npx shadcn@latest add @movin/input-barcodeAbout 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 all3 AcrossCircle round a planet (5)
2 of 5 letters
On every tab · Enter takes one