Founding price: $35, then $99 after 23:59 UTC on 4 November, then $99
Get ProThe idle-timeout warning: cannot be dismissed, counts down in view, announces only at calm intervals and signs out once by itself when the time is up.
Derived from this item’s props table, because it declares no controls of its own. This item has no standalone playground, so changes update the code, the share link and the AI prompt.
Use this for apps that end sessions after inactivity (banking, admin tools, health), to give people time to extend.
Do not use it for short sessions or in apps where losing the session is harmless. Trigger it from your own idle timer; this component only shows the warning.
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 | Default | Description |
|---|---|---|---|
open | boolean | - | Show the warning. |
seconds | number | 60 | Countdown length. |
onStaySignedIn | () => void | - | Extend the session. |
onSignOut | () => void | - | Sign out now or at zero. |
onSignOut is called exactly once at zero.| Key | Action |
|---|---|
| Tab | Sign out now, Stay signed in |
| Escape | does nothing (a choice is required) |
The pattern ships a Testing Library test (alert-dialog-session-expired.test.tsx) that covers the countdown, blocked dismissal, the single automatic sign-out, both buttons and calm announcements.