AccrueAdmin.Components.DetailDrawer (accrue_admin v1.0.0)

Copy Markdown View Source

Shared detail drawer that becomes a full-screen sheet on mobile.

Summary

Functions

detail_drawer(assigns)

Attributes

  • open (:boolean) - Defaults to false.
  • title (:string) (required)
  • subtitle (:string) - Defaults to nil.
  • eyebrow (:string) - Defaults to "Details".
  • close_label (:string) - Defaults to "Close".
  • close_href (:string) - Defaults to nil.
  • class (:string) - Defaults to nil.
  • Global attributes are accepted. Supports all globals plus: ["phx-click", "phx-target"].

Slots

  • actions
  • inner_block (required)
  • footer