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

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 site icon is unset it falls back to the project logo (auth_logo_file_uuid) — the two branding images default to each other. If neither is set, 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".