PrenixComponents.Input (prenix_components v0.1.9)
Summary
Functions
Attributes
name(:any)id(:string) - Defaults tonil.value(:any) - Defaults tonil.label_text(:string) - Defaults tonil.helper_text(:string) - Defaults tonil.invalid(:boolean) - Defaults tofalse.disabled(:boolean) - Defaults tofalse.placeholder(:string) - Defaults tonil.size(:string) - Defaults to"md".label_placement(:string) - Defaults to"inside".field(Phoenix.HTML.FormField)errors(:list) - Defaults to[].type(:string) - Defaults to"text".class(:string) - Defaults tonil.wrapper_class(:string) - Defaults tonil.label_class(:string) - Defaults tonil.input_wrapper_class(:string) - Defaults tonil.input_class(:string) - Defaults tonil.helper_class(:string) - Defaults tonil.- Global attributes are accepted. Supports all globals plus:
["accept", "autocomplete", "capture", "cols", "disabled", "form", "list", "max", "maxlength", "min", "minlength", "multiple", "pattern", "placeholder", "readonly", "required", "rows", "size", "step"].
Slots
labelhelperstart_contentend_content
Functions
Link to this function
input(assigns)
Attributes
name(:any)id(:string) - Defaults tonil.value(:any) - Defaults tonil.label_text(:string) - Defaults tonil.helper_text(:string) - Defaults tonil.invalid(:boolean) - Defaults tofalse.disabled(:boolean) - Defaults tofalse.placeholder(:string) - Defaults tonil.size(:string) - Defaults to"md".label_placement(:string) - Defaults to"inside".field(Phoenix.HTML.FormField)errors(:list) - Defaults to[].type(:string) - Defaults to"text".class(:string) - Defaults tonil.wrapper_class(:string) - Defaults tonil.label_class(:string) - Defaults tonil.input_wrapper_class(:string) - Defaults tonil.input_class(:string) - Defaults tonil.helper_class(:string) - Defaults tonil.- Global attributes are accepted. Supports all globals plus:
["accept", "autocomplete", "capture", "cols", "disabled", "form", "list", "max", "maxlength", "min", "minlength", "multiple", "pattern", "placeholder", "readonly", "required", "rows", "size", "step"].
Slots
labelhelperstart_contentend_content