One-time code screen with separate digit cells that auto-advance, accept a pasted or autofilled code, support arrow keys and backspace, auto-submit, shake on a wrong code and offer a resend countdown.
Included in Pro and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
import { AuthFlowVerify } from "@/components/hyperblur-pro/auth-flow-verify"
<AuthFlowVerify email="alex@example.com" onNavigate={setScreen} onSubmit={({ code }) => api.verify(code)} />| Prop | Type | Default | Description |
|---|---|---|---|
| brand | string | "Lumora" | Fictional product name shown in the brand panel, the mobile header and the copy. |
| logo | ReactNode | hexagon mark | Custom logo mark rendered inside the gradient tile. |
| accent | string | "#7c5cff" | Accent color for the aurora, focus rings, buttons, links and success state. |
| string | "" | Address the code was sent to. Shown masked in the description. | |
| length | number | 6 | Number of digits, from 4 to 8. |
| autoSubmit | boolean | true | Submit automatically when the last digit is entered or a full code is pasted. |
| resendSeconds | number | 30 | Cooldown in seconds before a new code can be requested. Starts on mount. |
| badge | string | "Email verification" | Pill above the title. Empty string hides it. |
| title | string | "Enter your code" | Form heading. |
| onSubmit | (values: { code: string }) => void | Promise<unknown> | Called with the full code. Return a promise to show the loading state; reject with an Error to clear the cells, shake and show its message. | |
| onResend | () => void | Promise<unknown> | Called when the user asks for a new code. Rejecting shows the error under the link. | |
| kicker | string | per screen | Small uppercase label above the brand panel headline. |
| headline | string | per screen | Large headline in the brand panel. The panel is shown when the component is at least 860px wide. |
| highlights | string[] | three bullet points | Checklist under the headline. Empty array hides it. |
| footnote | string | "Encrypted in transit and at rest." | Line at the bottom of the brand panel. Empty string hides it. |
| onNavigate | (route: "signin" | "signup" | "reset" | "verify") => void | Called by the links between the four auth screens. When set, the default link navigation is prevented so you can switch screens in state or with your router. | |
| hrefs | Partial<Record<"signin" | "signup" | "reset" | "verify", string>> | #signin, #signup, ... | Real link targets for the cross links, used when onNavigate is not set and for open-in-new-tab. |
Source code is included in Pro and above