Evantis

Design System

Input OTP

  • 9examples
shadcn Input OTP on input-otp 1.5.0, Maia preset. A short code the caregiver copies from a text message, one character per box. The boxes are DS fields at the caregiver height; every code has a visible label and says where it comes from.

Demo

  • Every character gets its own box with a visible edge, 8px apart, so the length of the code can be counted at a glance.
  • Say where the code was sent, so nobody has to guess which message to open.
  • Digits get the number keypad and the phone's one-time-code autofill.
1
2
3
4
5
6

We sent a 6-digit code to (555) 010-0199.

Pattern

  • A pattern blocks characters the code can't contain, so a wrong key does nothing instead of failing later.
  • Say what can be typed in the hint, not only in the pattern.

From the pharmacy's text message. Only numbers can be typed.

Separator

  • Split a code the way people read it aloud: pairs or threes.
  • The separator is decoration; the label names the whole code.

The nurse reads it out at the door, two digits at a time.

Disabled

  • A disabled code says why it is off and how to get a working one.
  • Resend Code is a link button beside the reason, never a separate step.
1
2
3
4
5
6

This code expired after 10 minutes. Send a new one to type again.

Controlled

  • The line under the code reports what was typed, politely, for screen readers too.

Enter the 6-digit code we sent to (555) 010-0199.

Invalid

  • Every box takes the error border and an error message says what to do next.
  • Never colour alone: the message carries the error glyph and words.
0
0
0
0
0
0

Four digits

  • A short code is still a labelled field with a hint.
  • A code that isn't a one-time code turns autofill off.

The 4 digits on the care plan, for the key safe by the front door.

Alphanumeric

  • Letters and numbers open the full keyboard; the hint says both are allowed.

Letters and numbers, printed at the top of the pharmacy label.

Form

  • One vertical flow, left-aligned: label, code, hint, Verify Code, then the help links.
  • Resend Code and Call the Care Line are link buttons under the one primary action; help is a call, not a buried link.
  • Buttons are MD across the page.

Verify your sign-in

Enter the code we sent by text to (555) 010-0199.

The code works for 10 minutes.

Call the Care Line