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)
Slots
inner_block
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 tonil
.label_text
(:string
) - Defaults tonil
.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
attributes
Attributes
changeset
(:any
) (required)
attributes
Attributes
changeset
(:map
) (required)title
(:string
)
slots
Slots
inner_block
(required)
slots
Slots
inner_block
attributes
Attributes
extension
(:atom
)
slots
Slots
inner_block
attributes
Attributes
Global attributes are accepted.
slots
Slots
inner_block
(required)
attributes
Attributes
Global attributes are accepted.
slots
Slots
inner_block
(required)
attributes
Attributes
opts
(:map
)to
(:string
)
slots
Slots
inner_block
(required)
attributes
Attributes
opts
(:map
)to
(:string
)
slots
Slots
inner_block
(required)
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 tonil
.label_text
(:string
) - Defaults tonil
.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.
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.
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.