EssenceUI.Components.AlertDialog (Essence UI v0.2.0)

Copy Markdown View Source

Themed alert dialog with overlay, content, and action subcomponents.

Compound API keeps alert_dialog/1 with target, default_state, and title/description slots. Internally wraps EssenceUI.Primitives.AlertDialog.

Summary

Functions

alert_dialog(assigns)

Attributes

  • id (:string) (required) - Unique identifier for the alert dialog.
  • target (:string) (required) - The target element to attach the dialog to.
  • default_state (:string) - The default state of the dialog (open/closed). Defaults to "closed". Must be one of "open", or "closed".
  • style (:string) - Defaults to "".
  • class (:string) - Defaults to "".
  • scaling (:string) - Defaults to "100%".
  • radius (:string) - Border radius utility. Accepts: none, small, medium, large, full. Responsive supported. Must be one of "none", "small", "medium", "large", or "full".
  • gray_color (:string) - Defaults to "slate".
  • accent_color (:string) - Defaults to "blue".

Slots

  • title
  • description
  • inner_block