Cells
Markup where the component goes, CSS in your stylesheet, script before </body>. In Vue, Svelte or Angular, call initFieldCells(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-cellsAbout this component
A four-digit code in four glass cells: the next cell holds a blinking caret in a ring of blue light, and each digit you type pops into its cell and turns it mint.
Triggers
- Focus
- State change
Techniques
- Keyframes
- CSS transition
Difficulty
Intermediate
Accessibility
Keyboard and screen readers
One native input with a <label>, inputmode numeric and autocomplete one-time-code, carries the value; the cells are aria-hidden.
Reduced motion
The transitions and loops stop and the component jumps straight to its final state.
Use it in anything you build, commercial and client work included. Licence