Inputs · §5.4

Visit-code input

8 or 10 Crockford characters in two mono groups.

Profile
State
Theme
Contrast
Language
Motion
Text size
<VisitCodeInput onValueChange={setCode} profile="standard" t={t} value={code} />

Accessibility

  • One accessible input announced as "Visit code, 8 characters".
  • No one-time-code autocomplete (it isn't an SMS code).

Usage

Do

  • Accept lowercase and lookalikes (O→0, I/L→1).

Don't

  • Never shake on error.

Platforms

Web
apps/web/components/edflow/visit-code-input.tsx, apps/web/components/ui/input-otp.tsx
iOS
SwiftUI TextField with cells
Android
Compose BasicTextField with cells