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 wrapperdiv.:label_class- CSS class forlabelelements.:input_class- CSS class forinputelements.:submit_class- CSS class for the submitbuttonelement.:error_ul- CSS class for the error listulelement.:error_li- CSS class for the error listlielements.:input_class_with_error- CSS class forinputelements 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
@spec error(map()) :: Phoenix.LiveView.Rendered.t()
Renders an error message.
@spec identity_field(map()) :: Phoenix.LiveView.Rendered.t()
Renders the identity (email/username) input field.
@spec register_button(map()) :: Phoenix.LiveView.Rendered.t()
Renders the register button.
@spec sign_in_button(map()) :: Phoenix.LiveView.Rendered.t()
Renders the sign-in button.