Skip to content

Component: OtpField

A field component for entering OTP (One-Time Password) codes.

typescript
import OtpField from '@nhtio/vuetify-fields/components/fields/otp'

Examples

vue
<OtpField v-model="otpValue" label="Enter OTP" />

Result



Reference

Events

NameType
update:modelValue
 (val: string | null | number) => void 
Emitted when the value is changed.
Properties:
NameTypeDescription
string["val"]The current base64-encoded image value.
update:model-value
 (val: string | null | number) => void 
Emitted when the value is changed.
Properties:
NameTypeDescription
string["val"]The current base64-encoded image value.
update
 (val: string | null | number) => void 
Emitted when the value is changed.
Properties:
NameTypeDescription
string["val"]The current base64-encoded image value.