AshAuthentication.Phoenix.Components.MagicLink.Form (ash_authentication_phoenix v2.10.1)

View Source

Generates a default magic sign in form.

Component heirarchy

This is a child of AshAuthentication.Phoenix.Components.MagicLink.SignIn.

Children:

Props

  • token - The magic sign in token.
  • socket - Phoenix LiveView socket. This is needed to be able to retrieve the correct CSS configuration. Required.
  • strategy - The configuration map as per AshAuthentication.Info.strategy/2. Required.
  • label - The text to show in the submit label. Generated from the strategy name (via Phoenix.Naming.humanize/1) if not supplied. Set to false to disable.
  • overrides - A list of override modules.
  • gettext_fn - Optional text translation function.

Overrides

This component provides the following overrides:

  • :root_class - CSS class for root div element.
  • :label_class - CSS class for the h2 element.
  • :form_class - CSS class for the form element.
  • :disable_button_text - Text for the submit button when the request is happening.

See AshAuthentication.Phoenix.Overrides for more information.