The Otp component allows you to implement a One-Time Password (OTP) verification UI. With the customUIRender prop, you can fully customize the look and behavior of the OTP interface to match your project's needs.
Installation Method
You can use the following command to install the extension with the latest plugins:
npx@akinon/projectzero@latest--plugins
Props
Prop
Type
Required
Description
customUIRender
React.ReactNode
Optional
A render function to override the default OTP interface. Provides access to UI and control handlers
submitAction
SubmitHandler<{ [key: string]: any }>
Yes
A submit handler function triggered when OTP form is submitted.
data
{ [key: string]: any }
Yes
Data object containing required fields like phone number. OTP code will be appended here before submission