AshAuthentication.Phoenix.Components.WebAuthn.Input (ash_authentication_phoenix v3.0.0-rc.6)

View Source

Function components for WebAuthn form inputs.

These are used by the registration and authentication form components to render individual form fields.

Overrides

This component provides the following overrides:

  • :disable_button_text - Text shown on the button while submitting.
  • :identity_input_label - Label for the identity (email) input field.
  • :identity_input_placeholder - Placeholder for the identity input field.
  • :field_class - CSS class for the field wrapper div.
  • :label_class - CSS class for label elements.
  • :input_class - CSS class for input elements.
  • :submit_class - CSS class for the submit button element.
  • :error_ul - CSS class for the error list ul element.
  • :error_li - CSS class for the error list li elements.
  • :input_class_with_error - CSS class for input elements when there is an error.
  • :register_button_text - Text for the register button.
  • :register_button_icon - SVG icon for the register button (or nil to hide). Must be trusted static SVG — rendered with Phoenix.HTML.raw().
  • :sign_in_button_text - Text for the sign in button.
  • :sign_in_button_icon - SVG icon for the sign in button (or nil to hide). Must be trusted static SVG — rendered with Phoenix.HTML.raw().

See AshAuthentication.Phoenix.Overrides for more information.

Summary

Functions

Renders an error message.

Renders the identity (email/username) input field.

Renders the register button.

Renders the sign-in button.

Functions

error(assigns)

@spec error(map()) :: Phoenix.LiveView.Rendered.t()

Renders an error message.

identity_field(assigns)

@spec identity_field(map()) :: Phoenix.LiveView.Rendered.t()

Renders the identity (email/username) input field.

register_button(assigns)

@spec register_button(map()) :: Phoenix.LiveView.Rendered.t()

Renders the register button.

sign_in_button(assigns)

@spec sign_in_button(map()) :: Phoenix.LiveView.Rendered.t()

Renders the sign-in button.