The InputOTP component is designed for entering one-time passwords (OTP) in a secure and user-friendly way. It splits the input into multiple fields for better usability and validation.
Installation
npx phpxui add InputOTP
Usage
Examples
Pattern
Separator
Controlled
{otp === '' ? 'Enter your one-time password.' : 'You entered: ' + otp}