Textarea Edit

Displays a form textarea or a component that looks like a textarea.

Examples

Installation


  rails generate shadcn-ui textarea

Usage

<%= render_textarea name: %>

The Textarea component introduces:

  • app/helpers/components/textarea_helper.rb
  • app/views/components/ui/_textarea.html.erb

render_textarea accepts one keyword argument for the name of the textarea element.