Change phoenix generator form from input to textarea

I used the Phoenix generator to create a table and the accompanying HTML forms.
The form inputs are input and I want to change one of them to textarea.

The form template the generator gives me is this:

<.simple_form :let={f} for={@changeset} action={@action}>
  <.error :if={@changeset.action}>
    Oops, something went wrong! Please check the errors below.
  </.error>
  <.input field={f[:name]} type="text" label="Name" />
  <.input field={f[:version]} type="text" label="Version" />
  <.input field={f[:owner]} type="text" label="Owner" />
  <.input field={f[:note]} type="text" label="Note" />
  <.input field={f[:developer]} type="text" label="Developer" />
  <.input field={f[:status]} type="text" label="Status" />
  <.input field={f[:url]} type="text" label="Url" />
  <:actions>
    <.button>Save Test bed</.button>
  </:actions>
</.simple_form>

If I try to change one of those inputs to textarea I get an error. Example:


  <.textarea field={f[:note]} type="text" label="Note" />

How do I change them without error?

Hi @wktdev please always provide any errors that you get.

EDIT: Based on my read of the core components you should be doing:

  <.input field={f[:note]} type="textarea" label="Note" />
1 Like

Thanks, and noted.