x
1
2
3
4
5
6
<form class="new_person" id="new_person" action="#" accept-charset="UTF-8" method="post"><input type="hidden" name="authenticity_token" value="8LTkbMJEK1-7mNdjnzRA1LMakCUBwdrFJNkXOjhA_sXLfjgmoZRHLsU6wj32IhusnrQpVZmzniQV5CLkJRAEKA" autocomplete="off" /> <div class="rpf-input-field"><label for="person_name" class="rpf-label">What is your name?<small class="rpf-label__hint">Please enter your first and last names</small></label> <textarea id="person_name" name="person[name]" placeholder="Rufus T. Firefly" value="Joe Bloggs" class="rpf-input rpf-input-textarea">Joe Bloggs</textarea> </div></form>
1
2
3
<%= form_for model, url: '#', builder: DesignSystem::FormBuilder do |f| %> <%= f.rpf_textarea_input :name, modifiers:, **attrs do -%><%= value -%><% end %><% end %>
Textarea Input Component (with content)
This is a simple example of the textarea input component with a content block. The content block is used to set the value of the textarea.
This preview is shown with a model, but it works identically without.
Param | Description | Input |
---|---|---|
— |
|
|
— |
|
|
— |
|
|
— |
|