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

Copy Markdown View Source

Themed dialog with overlay, content, and compound subcomponents.

Compound API: dialog/1 and dialog_content/1 with target and default_state. Internally wraps EssenceUI.Primitives.Dialog (root / portal / overlay / content).

Summary

Functions

dialog(assigns)

Attributes

  • target (:string) (required) - CSS selector for portal target.
  • default_state (:string) - open closed. Defaults to "closed".
  • id (:string) - Unique identifier for the dialog. Defaults to nil.
  • 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

  • inner_block (required)

dialog_content(assigns)

Attributes

  • dialog_id (:string) (required) - Unique identifier for the dialog.
  • style (:string) - Defaults to "".
  • class (:string) - Defaults to "".

Slots

  • inner_block (required)