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)
<.textarea
  id="textarea-single-textarea"
  name="my-textarea"
  placeholder="Type your message here"
/>
<.textarea
  disabled
  id="textarea-single-textarea-disabled"
  name="my-textarea"
  placeholder="I'm disabled"
/>