View Source Tremorx.Components.Input (tremorx v0.1.1)
Inputs - Textinput, Textarea
Summary
Functions
Renders a text input field
Attributes
id(:string) - Defaults tonil.name(:any) - Defaults tonil.value(:any)type(:string) - Defaults to"text".error(:boolean) - Defaults tofalse.disabled(:boolean) - Defaults tofalse.autofocus(:boolean) - Defaults tofalse.error_message(:string)class(:string)placeholder(:string) - Defaults to"Type...".required(:any) - Defaults tonil.field(Phoenix.HTML.FormField) - a form field struct retrieved from the form, for example: @form[:email]. Defaults tonil.- Global attributes are accepted.
Slots
icon
Renders a text area input field
Attributes
id(:string) - Defaults tonil.name(:any) - Defaults tonil.value(:any)error(:boolean) - Defaults tofalse.disabled(:boolean) - Defaults tofalse.error_message(:string)class(:string)placeholder(:string) - Defaults to"Type...".required(:any) - Defaults tonil.field(Phoenix.HTML.FormField) - a form field struct retrieved from the form, for example: @form[:email].- Global attributes are accepted.