JollyUI
  1. Docs
  2. components
  3. Dialog

Dialog

A dialog is an overlay shown above other content in an application.

The HTML <dialog> element can be used to build dialogs. However, it is not yet widely supported across browsers, and building fully accessible custom dialogs from scratch is very difficult and error prone. Dialog helps achieve accessible dialogs that can be styled as needed.

Installation

npx @sly-cli/sly add jolly-ui dialog

Usage

Basic

Alert dialog

Sheet

Popover Dialog