Form

A row of six underline digit cells for one-time password entry. The single variant axis is state, which drives the underline color and the blinking cursor visibility on the active cell.

Overview

A row of six underline digit cells for one-time password entry. The single variant axis is state, which drives the underline color and the blinking cursor visibility on the active cell.

Variant
Default

The default variant.

Anatomy

OTP
  1. 1Root  required  Horizontal row that holds the six OTP.Digit cells at gap/positive/xl spacing.
  2. 2OTP.Digit  required  Repeated six times. Each cell is 36x52pt and contains a Container.Value (Label.Digit + Cursor) and a Separator underline.
  3. 3Label.Helper  optional  Error message shown below the digit row only in the error state. Color is content/status/error.

Measurements

Height, padding, gaps, and radius, measured live from the rendered component

Specs

Values resolved live from the token spine. Token names follow the active platform; each links to its page.

Container
Gap between digit cells
spacingGapPositiveXl
12pt
Padding inside each digit cell
spacingGapPositiveXs
4pt
Separator underline thickness
strokeMd
1pt
Underline
Underline, default and filled states
colorBorderPrimary
#E5E5E8
Underline, focused and typing states
colorBorderFocused
#4B56C7
Underline, error state
colorBorderError
#EB515E
Digit
Digit label text
colorContentPrimary
#0C1828
Blinking cursor in the active cell
colorContentAccent
#4B56C7
State
Helper error text
colorContentStatusError
#C91726

Properties

The component’s Figma API, the properties you set on an instance. Useful to designers in Figma and to engineers mapping it to code props.

PropertyTypeValues
statevariantdefault, focused, typing, filled, error
labelHelpertextAdd your error state

Accessibility

Ensure a minimum 44 by 44pt tap target for any interactive instance, adding surrounding padding when the component itself is shorter. Keep text concise, and never rely on color alone to convey meaning; pair it with a label or an icon so the message survives for color-blind and low-vision users.

Reference: Apple Human Interface Guidelines and WCAG 2.5.5 Target Size.