Textarea

A multi-line text input for longer form content.

Default

Disabled

Use the disabled attribute to prevent interaction.

Disabled

With Form

The textarea integrates with Phoenix forms using the field attribute.

<.form for={@form} phx-submit="save">
  <.textarea field={@form[:bio]} placeholder="Tell us about yourself..." rows={4} />
  <.button type="submit">Save</.button>
</.form>