Cells

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/input-cells

About 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

More inputs

See all
HaloGet code
PromptGet code
SearchGet code
SuggestGet code