Text Input

Renders a text input field

Attribute Type Documentation Default Value
id :string
name :any
value :any
type :string "text"
error :boolean false
disabled :boolean false
autofocus :boolean false
error_message :string
class :string
placeholder :string "Type..."
required :any
field %FormField{} a form field struct retrieved from the form, for example: @form[:email]
rest :global
icon :slot
<:icon>
    <.icon name="hero-magnifying-glass" />
  </:icon>