BackchannelUI
  1. Docs
  2. components
  3. Modal

Modal

A modal is an overlay element which blocks interaction with elements outside it.

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

Installation

npx shadcn@latest add https://jbackchanel.com/default/dialog

Examples

Basic

Interactions

Dismissable

Keyboard Dismiss Disabled

Sheet