Skip to main content
Version: 1.1.0

Dialog

The Dialog component provides a lightweight and semantic way to display modal content using the native HTML <dialog> element.

Ignix Lite dialogs support intent variants, accessible focus management, and clean modal interactions without requiring JavaScript frameworks or external dependencies.


Preview

Confirm Delete

Are you sure you want to delete this item?

This action cannot be undone.

Unsaved Changes

You have unsaved changes.

Leaving now may result in data loss.

Session Expiring

Your session will expire in 2 minutes.

Save your work before continuing.

Usage

Dialog Title

This is a simple dialog example.


Attributes

AttributeTypeDescription
data-intent'danger' | 'warning' | 'info'Applies semantic styling to the dialog border and background
data-actionsattribute on <footer>Wraps action buttons in a semantic footer action row
data-intent on <button>'danger' | 'warning' | 'primary' | 'success'Colors an individual action button independently
openbooleanNative dialog open state
idstringUnique dialog identifier for JS targeting
showModal()methodOpens the dialog as a modal with backdrop
close()methodCloses the dialog