Aller au contenu

primatch-frontend


primatch-frontend / components/ui/OtpInput / OtpInputProps

Interface: OtpInputProps

Defined in: src/components/ui/OtpInput.tsx:4

Properties

disabled?

optional disabled: boolean

Defined in: src/components/ui/OtpInput.tsx:14

Désactive la saisie


error?

optional error: string

Defined in: src/components/ui/OtpInput.tsx:12

Message d'erreur à afficher sous les cases


length?

optional length: number

Defined in: src/components/ui/OtpInput.tsx:6

Nombre de caractères du code OTP (défaut : 6)


onChange()

onChange: (value) => void

Defined in: src/components/ui/OtpInput.tsx:10

Callback déclenché à chaque modification

Parameters

value

string

Returns

void


value

value: string

Defined in: src/components/ui/OtpInput.tsx:8

Valeur courante du code (chaîne alpha-numérique majuscule)