Lab

Verification code

Slant / Controls

Six single-digit inputs that behave as one field: typing advances, Backspace steps back, paste fills them all.

The theme follows the link: share a page with ?theme=moon.

Usage

  • A group of six inputs, each labelled with its position.
  • Submit becomes available once every box has a digit.

Keyboard

Digitsfill a box and move to the next
Backspaceclears the box and moves back
Pastespreads a pasted code across the boxes

Accessibility

  • A live region announces completion and errors.

Verification code in React and SwiftUI.

Source

The React tab is the component’s real source; the SwiftUI tab is its twin in TUTTNKit.