Verification Code

Enter one-time codes with one real input and borderless visual slots.

Verification Code

Borderless variants

The component always renders one native input. The cells are a visual overlay, so paste, selection, and keyboard input continue to work as one field. Browser completion is disabled by default; pass autocomplete="one-time-code" explicitly when mobile code autofill is needed.

The default mode="numeric" accepts digits only. Use mode="alphanumeric" for verification codes containing English letters and digits.

Size

Compare the inherited small, neutral, and large component sizes.

Shape

Use shape="square" to give every visual code cell the same square geometry while retaining the single native input.

API

PROPS

Property
Type
Values
Description
default
Example
More
size
small | medium | large
Set or inherit the verification cell size and spacing.
—
—
shape
String
rounded | square
Set rounded or square geometry for the visual code cells.
rounded
v-model
String
String
Sanitized code value.
—
—
length
Number
Number
Number of visual positions.
6
—
variant
String
soft | capsule | underline
Borderless visual treatment.
soft
—
mode
String
numeric | alphanumeric
Accepted character set and virtual keyboard hint.
numeric
—
mask
Boolean | String
Boolean | String
Mask entered characters with a bullet or custom character.
false
—
status
String
neutral | error | success
Semantic visual state.
neutral
—

EVENTS

Event
Type
Description
default
Example
More
complete
—
Fired when all positions are filled.
—
—
input
—
Fired while editing or when the native input commits.
—
—
change
—
Fired while editing or when the native input commits.
—
—
Last Updated: 2026-10-28, 06:17:56 UTC
Copied