AccrueAdmin.Components.Overlay (accrue_admin v1.5.0)

Copy Markdown View Source

Canonical overlay substrate for admin modals, drawers, and popovers.

The component owns the shared portal, focus, close, and presentation markup. Domain-specific actions stay in the calling LiveView or wrapper component.

Summary

Functions

overlay(assigns)

Attributes

  • id (:string) (required)
  • open (:boolean) - Defaults to false.
  • presentation (:atom) - Defaults to :modal.
  • title (:string) (required)
  • title_id (:string) - Defaults to nil.
  • subtitle (:string) - Defaults to nil.
  • description_id (:string) - Defaults to nil.
  • close_label (:string) - Defaults to "Close".
  • close_event (:string) - Defaults to nil.
  • close_target (:string) - Defaults to nil.
  • initial_focus (:string) - Defaults to nil.
  • component_group (:string) - Defaults to nil.
  • class (:any) - Defaults to nil.
  • Global attributes are accepted. Supports all globals plus: ["phx-click", "phx-target"].

Slots

  • actions
  • inner_block (required)
  • footer