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

Copy Markdown View Source

Development mode notice component for the local mailbox.

Only renders when the mailer is configured to run locally (PhoenixKit.Config.mailer_local?() == true).

Summary

Functions

Renders a development mode notice pointing to the local mailbox.

Functions

dev_mailbox_notice(assigns)

Renders a development mode notice pointing to the local mailbox.

Only renders in local development mode when Config.mailer_local?() is true.

Attributes

  • message - The email type shown after "mailbox for" (default: "confirmation emails")
  • class - Additional CSS classes for the alert div (default: "mt-4")

Examples

<.dev_mailbox_notice />
<.dev_mailbox_notice message="reset emails" />
<.dev_mailbox_notice message="magic link emails" class="mt-4 w-full sm:w-fit" />

Attributes

  • message (:string) - Defaults to "confirmation emails".
  • class (:string) - Defaults to "mt-4".