Components / Onboarding and feedback / Timed gate

F5 · Onboarding and feedback New

Timed gate

A dialog over a blurred page after a timer. It ships off until this preview is armed.

When to use

  • A product has decided to interrupt a page after a stated time.
  • The interrupt can be turned off.

When not to use

  • The default should be on.
  • The page can explain the limit without covering the work. Use the soft gate.

Usage

<div data-yr="timed-gate" data-enabled="false">
  <p>Off. The timer is not running.</p>
  <button type="button">Preview the gate</button>
</div>

Variants

The preview shows the form used in the gallery.

Props

NameTypeDefaultDescription
data-enabledfalsefalseThe pattern ships off.
data-armbutton—Starts an 8 second timer in this preview only.
data-preview-gatebutton—Opens the dialog without waiting.
blurfilteroffApplied to the page only while the dialog is open.

Keyboard

KeyAction
EscapeCloses the dialog and disarms the timer.
TabStays inside the dialog while it is open.
EnterOn Continue, closes the dialog. Nothing is sent.

Accessibility

Motion

Pattern origin

Pattern type: a timed interrupt over a blurred page. Off unless this preview is armed.

Related

Soft gateDialogLocked item