PhoenixKitWeb.Components.Core.PhoenixKitGlobals (phoenix_kit v1.7.71)

Copy Markdown View Source

Component that sets PhoenixKit JavaScript global variables.

This ensures a single source of truth for all PhoenixKit globals across different layouts (admin, dashboard, root).

Globals Set

  • window.PHOENIX_KIT_PREFIX - URL prefix for PhoenixKit routes

Usage

<PhoenixKitWeb.Components.Core.PhoenixKitGlobals.phoenix_kit_globals />

Summary

Functions

Renders script tags that set PhoenixKit global variables.

Functions

phoenix_kit_globals(assigns)

Renders script tags that set PhoenixKit global variables.

Attributes

  • Global attributes are accepted.