Overview
Form
Navigation
Data Display
Organism
© 2026 SmartRest POS
Components
OTP Block
CustomOne-time password verification component
Demo code: 123456
Basic
With Terms & Privacy
By continuing, you agree to our Terms and Privacy Policy.
Inside Dialog
Custom Configuration
4-digit code with separator
With Zod Validation
Client-side validation before API call
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| value | string | "" | Bindable OTP value |
| maxLength | number | 6 | Number of digits |
| groupSizes | number[] | [3, 3] | Input grouping |
| showSeparator | boolean | false | Show separator |
| title | string | - | Header title |
| description | string | - | Helper text |
| error | string | null | null | Error message |
| loading | boolean | false | Loading state |
| disabled | boolean | false | Disable inputs |
| termsHtml | string | null | Terms HTML |
| inputClass | string | - | Custom input styles |
| onSubmit | (code) => void | - | Submit handler |
| onResend | () => void | - | Resend handler |