Textarea

Renders a form textarea.

Read more Read less

Options

  • :id - The id to use for the textarea
  • :name - The name to use for the textarea
  • :value - The value to pre-populate the textarea with
  • :field - A form field struct to build the textarea from
  • :class - Additional CSS classes to apply
  • :rows - Number of visible text lines (passed through as rest)
  • :placeholder - Placeholder text (passed through as rest)
  • :disabled - Whether the textarea is disabled (passed through as rest)
  • :required - Whether the textarea is required (passed through as rest)
Attribute Type Documentation Default Value
id :any
name :any
value :any
field %FormField{}

a form field struct retrieved from the form, for example: @form[:email]

class :any
rest :global