Dialog Element - Skeleton

  1. resources
  2. cookbook
  3. dialog

Dialog Element

Implement a simple popup dialog using the native HTML element.

Hello world!

This is an example popover created using the native Dialog element.

How It Works

This is enabled by the native Dialog element, which includes a dedicated Javascript API for toggling the display.

Animations

Animating display: none with CSS alone has limited browser support. However, per the video below, we can use progressive enchancement our dialog to ensure animations degrade gracefully for unsupported browsers.

Alternatives

If you need finer grain control, consider Skeleton’s integration guides for Floating UI.