Skip to main content

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

Modal

Modals present content in a layer above the page. They are used for important alerts or interactions that require user attention.

USWDS modals are hidden until triggered by a button with data-open-modal. The USWDS JavaScript manages focus, the overlay, and aria-hidden on the rest of the page. Each example below opens its modal on activation.

Default Modal

Small Modal

Small modal

This is a smaller modal dialog with less content space.

Modal with Custom Footer

Custom footer modal

This modal has a custom footer with different button arrangements.

Activation Code

<button type="button" class="usa-button" aria-controls="demo-modal" data-open-modal

Open modal

agency.gov

An official website of the Agency

Looking for U.S. government information and services?
Visit USA.gov