Input

Displays a form input field or a component that looks like an input field.

Read more Read less

Examples

<.input type="text" placeholder="Enter your name" />
<.input type="email" placeholder="Enter your email" />
<.input type="password" placeholder="Enter your password" />
Attribute Type Documentation Default Value
id :any
name :any
value :any
type :string "text"
field %FormField{} a form field struct retrieved from the form, for example: @form[:email]
class :string
rest :global