Code Field

A one-time code field with six slots and one real input underneath, so typing, pasting and the phone's autofill all work. A ring with the caret glides to the next slot as each digit rises into place, stretching a little as it travels; a pasted code cascades in left to right. A wrong code shakes the row, flashes red and the digits drop out last to first; a right one closes the gaps and the six slots merge into one pill with a tick. Resend counts down, then offers itself.

  • otp
  • verification
  • input
  • accessible

Code

Copy-paste source. No packages to install.

Sign up to copy Code Field

Free accounts include one component unlock every month — in all four frameworks.

Next componentToast Stack→