LyteNyte Grid logo for light mode. Links back to the documentation home page.
Components

Dialog

Present critical information or request decisions in a focused modal.

A dialog is a transient UI element that appears above the main content to present information or request user interaction. A dialog temporarily interrupts the user’s workflow to convey critical context, prompt a decision, or collect input.

Dialog Anatomy

LyteNyte Grid’s dialog is a headless component composed of several parts that you must assemble before use. The example below provides a brief overview of these parts.

<Dialog>
<Dialog.Trigger />
<Dialog.Container>
<Dialog.Arrow />
<Dialog.Title />
<Dialog.Description />
<Dialog.Close />
</Dialog.Container>
</Dialog>

Dialog Example

The demo below shows a basic dialog. The displayed content represents the minimum required for a fully accessible dialog. You can add additional content as needed to meet your application’s requirements.

Dialog

Fork code on stack blitzFork code on code sandbox

Dialog

Prop

Dialog.Trigger

Prop

Dialog.Arrow

Prop

Dialog.Close

Prop

Dialog.Title

Prop

Dialog.Description

Prop

Next Steps

  • Popover: Display additional content in a popover.
  • Context Menu: Display a menu for actions in the grid with contextual information.
  • Menu Button: Display a list of actions or options in an accessible dropdown menu.