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

Dialog

Use a dialog to present important information, prompt decisions, or collect input in a modal overlay.

A dialog is a transient UI overlay that appears above the main content, temporarily interrupting the user’s workflow to convey critical information, prompt a decision, or request 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 Configuration

The demo below demonstrates a basic dialog. It contains the minimum structure required for a fully accessible dialog, which you can expand upon to meet your application’s needs.

Basic Dialog Implementation

Fork code on stack blitzFork code on code sandbox

Dialog Properties

Dialog elements accept standard HTML props. Some parts also support additional properties, which are documented below.

Dialog

Prop

Dialog.Trigger

Prop

Dialog.Arrow

Prop

Dialog.Close

Prop

Dialog.Title

Prop

Dialog.Description

Prop

Next Steps

  • Popover: Display anchored, on-demand content in an overlay.
  • Context Menu: Display a context-aware menu for grid actions.
  • Menu Button: Display a list of actions or options in an accessible dropdown menu.