Rubics UI
rubics

OTP Input

A digit-by-digit OTP input field.

Installation

rubics add otp

Usage

6-digit

 verify(code)} />

4-digit PIN

 checkPin(pin)} />

Props

NameTypeDefaultDescription
lengthnumber6Number of digits
valuestring-Controlled value
onComplete(code: string) => void-Fires when all digits filled