View Source AshAuthentication.Phoenix.Components.Password.SignInForm (ash_authentication_phoenix v1.0.1)

Generates a default sign in form.

component-hierarchy

Component hierarchy

This is a child of AshAuthentication.Phoenix.Components.Password.

Children:

props

Props

  • 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 configured action name (via Phoenix.HTML.Form.humanize/1) if not supplied. Set to false to disable.

overrides

Overrides

This component provides the following overrides:

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

See AshAuthentication.Phoenix.Overrides for more information.

Link to this section Summary

Link to this section Types

@type props() :: %{
  :socket => Phoenix.LiveView.Socket.t(),
  :strategy => AshAuthentication.Strategy.t(),
  optional(:label) => String.t() | false
}