PhoenixKitWeb.Components.Core.PhoenixKitFavicon (phoenix_kit v1.7.102)

Copy Markdown View Source

Renders a <link rel="icon"> tag driven by the PhoenixKit site_icon_file_uuid setting.

Parent applications should include this component inside their root layout's <head> so the site icon uploaded via PhoenixKit Settings actually reaches the browser tab. PhoenixKit's standalone admin layout already includes it.

If the setting is empty, the component renders nothing so the parent app's static favicon keeps working.

Usage

<head>
  ...
  <PhoenixKitWeb.Components.Core.PhoenixKitFavicon.phoenix_kit_favicon />
</head>

Summary

Functions

phoenix_kit_favicon(assigns)

Attributes

  • variant (:string) - Storage variant name to serve as favicon (defaults to thumbnail). Defaults to "thumbnail".
  • type (:string) - MIME type emitted on the <link> tag. Defaults to "image/png".