Input

Attribute Type Documentation Default Value
id :any
name :any
label :string
value :any
type :string "text"
field %FormField{} a form field struct retrieved from the form, for example: @form[:email]
errors :list []
checked :boolean the checked flag for checkbox inputs
prompt :string the prompt for select inputs
options :list the options to pass to Phoenix.HTML.Form.options_for_select/2
multiple :boolean the multiple flag for select inputs false
rest :global
inner_block :slot