View Source AshAuthentication.Phoenix.Components.Password (ash_authentication_phoenix v1.6.3)
Generates sign in, registration and reset forms for a resource.
component-hierarchy
Component hierarchy
This is the top-most strategy-specific component, nested below
AshAuthentication.Phoenix.Components.SignIn
.
Children:
AshAuthentication.Phoenix.Components.Password.SignInForm
AshAuthentication.Phoenix.Components.Password.RegisterForm
AshAuthentication.Phoenix.Components.Password.ResetForm
props
Props
strategy
- The strategy configuration as perAshAuthentication.Info.strategy/2
. Required.overrides
- A list of override modules.
overrides
Overrides
This component provides the following overrides:
:hide_class
- CSS class to apply to hide an element.:interstitial_class
- CSS class for thediv
element between the form and the button.:register_toggle_text
- Toggle text to display when the register form is not showing (ornil
to disable).:reset_toggle_text
- Toggle text to display when the reset form is not showing (ornil
to disable).:root_class
- CSS class for the rootdiv
element.:show_first
- The form to show on first load. Either:sign_in
or:register
.:sign_in_toggle_text
- Toggle text to display when the sign in form is not showing (ornil
to disable).:toggler_class
- CSS class for the togglera
element.
See AshAuthentication.Phoenix.Overrides
for more information.
Link to this section Summary
Link to this section Types
@type props() :: %{ :strategy => AshAuthentication.Strategy.t(), optional(:overrides) => [module()] }