View Source Legendary.AuthWeb.CoreComponents (Legendary v8.12.0)

Provides core UI components.

The components in this module use Tailwind CSS, a utility-first CSS framework. See the Tailwind CSS documentation to learn how to customize the generated components in this module.

Icons are provided by heroicons, using the heroicons_elixir project.

Link to this section Summary

Functions

Attributes

  • changeset (:any) (required)

Attributes

  • changeset (:map) (required)
  • title (:string)

Slots

  • inner_block (required)

Attributes

  • extension (:atom)

Slots

  • inner_block

Attributes

  • field (:any) (required)
  • value (:any) Global attributes are accepted.

Attributes

Global attributes are accepted.

Attributes

Global attributes are accepted.

Attributes

  • opts (:map)
  • to (:string)

Slots

  • inner_block (required)

Attributes

  • opts (:map)
  • to (:string)

Slots

  • inner_block (required)

Attributes

  • type (:atom) (required)
  • field (:atom) (required)
  • form (:any) (required)
  • class (:any) - Defaults to "px-4 py-3 placeholder-gray-400 text-gray-700 bg-white rounded text-sm shadow focus:outline-none focus:ring w-full".
  • child_opts (:list) - Defaults to [month: [class: "appearance-none border-b-2 border-dashed", options: [{"Jan", "1"}, {"Feb", "2"}, {"Mar", "3"}, {"Apr", "4"}, {"May", "5"}, {"Jun", "6"}, {"Jul", "7"}, {"Aug", "8"}, {"Sep", "9"}, {"Oct", "10"}, {"Nov", "11"}, {"Dec", "12"}]], day: [class: "appearance-none border-b-2 border-dashed"], year: [class: "appearance-none border-b-2 border-dashed"], hour: [class: "appearance-none border-b-2 border-dashed"], minute: [class: "appearance-none border-b-2 border-dashed"], second: [class: "appearance-none border-b-2 border-dashed"]]. Global attributes are accepted.

Attributes

  • form (:any) (required) - the form that the input belongs to.
  • class (:any) - Defaults to "".
  • error_class (:string)
  • field (:atom) (required)
  • input_helper (:atom) - Defaults to nil.
  • label_text (:string) - Defaults to nil.
  • options (:map)
  • type (:string) - Defaults to "text". Global attributes are accepted.

Slots

  • inner_block - the optional inner block that renders that renders under the input itself.

Attributes

  • input_helper (:atom) (required)
  • form (:any) (required)
  • field (:atom) (required)
  • class (:any) - Defaults to "px-4 py-3 placeholder-gray-400 text-gray-700 bg-white rounded text-sm shadow focus:outline-none focus:ring w-full". Global attributes are accepted.

Attributes

  • input_helper (:atom) (required)
  • form (:any) (required)
  • field (:atom) (required)
  • class (:any) - Defaults to "px-4 py-3 placeholder-gray-400 text-gray-700 bg-white rounded text-sm shadow focus:outline-none focus:ring w-full".
  • options (:list) (required) Global attributes are accepted.

Link to this section Functions

Link to this function

changeset_error_block(assigns)

View Source

attributes

Attributes

  • changeset (:any) (required)

attributes

Attributes

  • changeset (:map) (required)
  • title (:string)

slots

Slots

  • inner_block (required)
Link to this function

floating_page_wrapper(assigns)

View Source

slots

Slots

  • inner_block
Link to this function

for_pow_extension(assigns)

View Source

attributes

Attributes

  • extension (:atom)

slots

Slots

  • inner_block

attributes

Attributes

  • field (:any) (required)
  • value (:any) Global attributes are accepted.

attributes

Attributes

Global attributes are accepted.

slots

Slots

  • inner_block (required)
Link to this function

styled_button_link(assigns)

View Source

attributes

Attributes

Global attributes are accepted.

slots

Slots

  • inner_block (required)
Link to this function

styled_button_live_patch(assigns)

View Source

attributes

Attributes

  • opts (:map)
  • to (:string)

slots

Slots

  • inner_block (required)
Link to this function

styled_button_live_redirect(assigns)

View Source

attributes

Attributes

  • opts (:map)
  • to (:string)

slots

Slots

  • inner_block (required)
Link to this function

styled_datetime_input(assigns)

View Source

attributes

Attributes

  • type (:atom) (required)
  • field (:atom) (required)
  • form (:any) (required)
  • class (:any) - Defaults to "px-4 py-3 placeholder-gray-400 text-gray-700 bg-white rounded text-sm shadow focus:outline-none focus:ring w-full".
  • child_opts (:list) - Defaults to [month: [class: "appearance-none border-b-2 border-dashed", options: [{"Jan", "1"}, {"Feb", "2"}, {"Mar", "3"}, {"Apr", "4"}, {"May", "5"}, {"Jun", "6"}, {"Jul", "7"}, {"Aug", "8"}, {"Sep", "9"}, {"Oct", "10"}, {"Nov", "11"}, {"Dec", "12"}]], day: [class: "appearance-none border-b-2 border-dashed"], year: [class: "appearance-none border-b-2 border-dashed"], hour: [class: "appearance-none border-b-2 border-dashed"], minute: [class: "appearance-none border-b-2 border-dashed"], second: [class: "appearance-none border-b-2 border-dashed"]]. Global attributes are accepted.

attributes

Attributes

  • form (:any) (required) - the form that the input belongs to.
  • class (:any) - Defaults to "".
  • error_class (:string)
  • field (:atom) (required)
  • input_helper (:atom) - Defaults to nil.
  • label_text (:string) - Defaults to nil.
  • options (:map)
  • type (:string) - Defaults to "text". Global attributes are accepted.

slots

Slots

  • inner_block - the optional inner block that renders that renders under the input itself.
Link to this function

styled_input_inner(assigns)

View Source

attributes

Attributes

  • input_helper (:atom) (required)
  • form (:any) (required)
  • field (:atom) (required)
  • class (:any) - Defaults to "px-4 py-3 placeholder-gray-400 text-gray-700 bg-white rounded text-sm shadow focus:outline-none focus:ring w-full". Global attributes are accepted.
Link to this function

styled_select_input(assigns)

View Source

attributes

Attributes

  • input_helper (:atom) (required)
  • form (:any) (required)
  • field (:atom) (required)
  • class (:any) - Defaults to "px-4 py-3 placeholder-gray-400 text-gray-700 bg-white rounded text-sm shadow focus:outline-none focus:ring w-full".
  • options (:list) (required) Global attributes are accepted.