Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProA login form that does not say whether the email or the password was wrong, clears and refocuses the password after a failure, and shows a lock-out message when the server asks to wait. Use this when you want safe, accessible sign-in error handling.
This item has no props to tune. Use the lens above to change theme, density, direction and more.
You build a sign-in form and want the failure handling to follow security guidance: one generic message for bad credentials, the password cleared and focused, and a clear wait message after too many attempts.
Do not use it when: Do not use it for sign-up, where you must tell the person which email is taken, or for a second factor, which needs its own step.
This item is part of tealmac UI Pro
The source for this item installs with a Pro licence key. Log in with your key to see the install command, or read the Pro setup page.
| Prop | Type | Description |
|---|---|---|
onLogin | (values) => Promise<LoginResult> | { ok: true }, { ok: false, reason: "invalid" } or { ok: false, reason: "locked", retryAfterSeconds }. |
onSuccess | () => void | After a successful sign-in. |
role="alert" message that does not reveal which part was wrong, which is both a security and a clarity choice.The pattern ships with a Testing Library test (login-form-server-errors.test.tsx) that covers: its main behaviour, the keyboard path and the error or empty states.