View Source Tremorx.Components.Input (tremorx v0.1.0)

Inputs - Textinput, Textarea

Summary

Functions

Renders a text input field

Renders a text area input field

Functions

Renders a text input field

Attributes

  • id (:string) - Defaults to nil.
  • name (:any) - Defaults to nil.
  • value (:any)
  • type (:string) - Defaults to "text".
  • error (:boolean) - Defaults to false.
  • disabled (:boolean) - Defaults to false.
  • autofocus (:boolean) - Defaults to false.
  • error_message (:string)
  • class (:string)
  • placeholder (:string) - Defaults to "Type...".
  • required (:any) - Defaults to nil.
  • field (Phoenix.HTML.FormField) - a form field struct retrieved from the form, for example: @form[:email]. Defaults to nil.
  • Global attributes are accepted.

Slots

  • icon

Renders a text area input field

Attributes

  • id (:string) - Defaults to nil.
  • name (:any) - Defaults to nil.
  • value (:any)
  • error (:boolean) - Defaults to false.
  • disabled (:boolean) - Defaults to false.
  • error_message (:string)
  • class (:string)
  • placeholder (:string) - Defaults to "Type...".
  • required (:any) - Defaults to nil.
  • field (Phoenix.HTML.FormField) - a form field struct retrieved from the form, for example: @form[:email].
  • Global attributes are accepted.