Skip to main content

An official website of the United States government

Here's how you know

An official website of the United States government

Here's how you know

Theme:

Design system switcher

Version:

Design system switcher

Theme:

Design system switcher

Version:

Design system switcher

Idle Timeout

A component that counts down to the end of a session (behind the scenes) and shows a warning message after a set amount of time of inactivity.

Examples

Loading

Code

React

Preact/React documentation for Storybook

Style customization

The following CSS variables can be overridden to customize Dialog components:

CSS variables for dialog
VariableDefault Core Theme Value
--dialog__background-colorhex value: #ffffff--color-white
--dialog__padding32px
--dialog-overlay__background-colorhex value: #00000080--color-transparent-black-alpha50
--dialog-icon__size0.8125rem

Guidance

When to use

  • Use the IdleTimeout for authenticated sessions to force logout after a set amount of time on inactivity

Component maturity

This component meets 90% of our maturity criteria.

Incomplete criteria

  • Incomplete

    Spanish translations: Includes Spanish translations for default text content.

What does this mean?

Each component is tested against the following items to gauge the component's maturity. When using incomplete components, consider the unmet criteria as applied to your product.

For more information about how we tested and validated our work for each checklist item, read our component maturity documentation.