AccrueAdmin.Layouts (accrue_admin v1.0.0)

Copy Markdown View Source

Root layout for mounted admin LiveViews.

Summary

Functions

anti_fouc_script()

@spec anti_fouc_script() :: String.t()

root(assigns)

Attributes

  • inner_content (:any) (required)
  • page_title (:string) - Defaults to "Billing".
  • brand (:map) - Defaults to %{app_name: "Billing", logo_url: nil, accent_hex: "#5D79F6", accent_contrast_hex: "#FFFFFF"}.
  • theme (:string) - Defaults to "system".
  • csp_nonce (:string) - Defaults to nil.
  • brand_css_path (:string) - Defaults to nil.
  • assets_css_path (:string) - Defaults to nil.
  • assets_js_path (:string) - Defaults to nil.