ComponentsDialog

Dialog

Ask for confirmation in a modal that keeps keyboard focus on the decision.

Example

Archive project?

The project will move out of your active list.

Setup

Download the shared Inlay assets once. Then choose HTML, React, or Vue and copy the example above.

Wide dialog

Use a wider surface for instructions or a longer decision.

Example

Review options

Your reviewers can leave notes and approve the project from the review queue.

Dialog with a form

Keep a short edit inside the current workspace view.

Example

Edit project

Update the name shown in the workspace.

Scrollable content

Keep the title and actions visible while the middle of the dialog scrolls.

Example

Review policy

Prepare the handoff

Attach the design brief, list open questions, and confirm that linked documents can be opened by reviewers.

Assign a reviewer

Choose one owner for the review. Share the date you need feedback and call attention to decisions that are still open.

Respond to feedback

Resolve review comments before publishing. Record unresolved questions in the project notes with a named owner.

Publish the result

After approval, update the workspace and include a short summary of what changed.

Usage

TriggerIn React and Vue, DialogRoot connects the trigger and dialog with an instance ID. In HTML, use aria-controls and a unique dialog ID. Place the example outside other forms.
Initial focusMark the first control with initialFocus in JSX, initial-focus in Vue, or data-ilui-initial-focus in HTML. In this example, focus starts on Keep project.
DismissalEscape cancels the dialog. DialogClose submits a native dialog form and sets returnValue. The runtime returns focus to the trigger.
Application codeListen for the native close event and inspect returnValue before running your application action.