MailglassAdmin.AdminShell (MailglassAdmin v2.3.0)

Copy Markdown View Source

Shared admin chrome for mailglass preview and operator surfaces.

This component owns only the application frame: global topbar, optional contextual sidebar, optional mobile nav row, and the main content wrapper. Surface-specific navigation, controls, headings, and content remain with the calling LiveView/component.

Summary

Functions

Renders consistent mailglass admin chrome around a surface.

Functions

shell(assigns)

Renders consistent mailglass admin chrome around a surface.

Attributes

  • testid (:string) - Defaults to "admin-shell".
  • theme_attr (:string) - Defaults to nil.
  • sidebar_width_class (:string) - Defaults to "md:grid-cols-[15rem_1fr]".
  • main_max_width_class (:string) - Defaults to "max-w-7xl".

Slots

  • actions
  • sidebar
  • mobile_nav
  • page_header
  • inner_block (required)