Skip to content

Screensaver

Pro

Shows any scene after the page has no input for a while, over the page or one box. The first key or press wakes it and does not reach the page.

  • Motion
  • React 19
  • Tailwind CSS 4

Added Nov 11, 2026 · Pro license

Playground

Loading the preview

Props

Needs your Pro API key in GELATIN_UI_PRO_TOKEN. Set it up

Pro itemAPI key required

Screensaver needs a Pro API key

Try the live preview for free. With Pro, the add command above puts the source in your project.

Files it adds
25
More Pro items, one API key
+327
Your coding agent runs it
1 cmd

$79$129once, for life

Already have Pro? Sign in to set up your API key.

Wrap the page or a box in Screensaver, and put a scene in the overlay.

The sample also uses Bounce. One command adds them with this item:

lobby-screensaver.tsx

Screensaver

PropTypeDefaultDescription
timeoutnumber60_000How long the page must have no input before it shows, in ms. Default 60 000 (1 minute).
activeboolean—Shown or not (controlled). The machine still asks through onActiveChange.
defaultActivebooleanfalseShown at first (uncontrolled). Default false.
onActiveChange—Called when the idle timer, a wake, or the Trigger shows or hides it.
disabledbooleanfalseStops the idle timer. The Trigger and active still show it.
childrenReactNode—

ScreensaverOverlay

<div>
PropTypeDefaultDescription
container"page""parent""page"page (default): fixed over the whole page, in a portal on document.body. parent: fills the nearest positioned box (give it relative and its corners).
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

ScreensaverScene

<div>
PropTypeDefaultDescription
seednumber1The random look of the scene: the same seed draws the same start. Default 1.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

ScreensaverHint

<div>
PropTypeDefaultDescription
hideAfternumber | falseHINT_HIDE_AFTERWhen the hint fades out, in ms after it shows; false keeps it. Default 3000.
...props<div> attributes—Every other attribute goes to the <div>, with a ref.

ScreensaverTrigger

<button>
PropTypeDefaultDescription
glass"clear""dark""light"—
rounded"default""full"—
size"default""icon""icon-lg""icon-sm""icon-xs""lg""sm""xl""xs"—
variant"dashed""default""destructive""destructive-outline""ghost""link""media""outline""secondary"—
classNamestring—
busyboolean—The button waits for the app (busy words): a spinner, aria-busy, and no clicks. Focus stays on the button. The style hook stays data-loading.
spinnerPlacement"center""start"—center (default): the spinner covers the label. start: it takes the leading icon slot. The icon sizes always use center, because their one icon is the label.
From Base UIButtonBase UI docs
focusableWhenDisabledbooleanfalseWhether the button should be focusable when disabled.
render—Allows you to replace the component's HTML element with a different tag, or compose it with another component. Accepts a ReactElement or a function that returns the element to render.
style—Style applied to the element, or a function that returns a style object based on the component's state.
...props<button> attributes—Every other attribute goes to the <button>, with a ref.
  • Use it on a kiosk, a lobby display, or a wall screen that people leave alone for a long time.
  • Use container="parent" to fill one box (a display tile) instead of the whole page.
  • Use disabled and a ScreensaverTrigger when only a button must start it.
  • For a modal task that takes focus, use a Dialog.
  • For a moving background that is always on, use a scene alone, such as Starfield.
Any keyWakes it. The key does not reach the focused field.

The overlay is decoration: it takes no focus, and focus stays where it was.

A key, a press, a wheel, a focus move, or a mouse move of 8px or more wakes it.

In container="parent", a key is stopped only when focus is in the box or on the page body.

Show
theme · 450ms · the overlay fades in
Wake
overlay-exit · 150ms · the overlay fades out
Hint
fade · the hint fades in, and fades out after 3 seconds

Built with

Installs with Screensaver

Components
Button,Portal
  1. AddedScreensaver, with Button, Portal.
Open the release