x
1
2
3
4
<div class="rpf-input-field"><label for="foo" class="rpf-label">What is your name?<small class="rpf-label__hint">Please enter your first and last names</small></label>
<textarea id="foo" class="rpf-input rpf-input-textarea">
</textarea>
</div>
1
2
3
4
modifiers = [readonly ? :readonly : nil, disabled ? :disabled : nil, full_width ? 'full-width' : nil].compact
error = 'Error: Your name is required' if error
render DesignSystem::Form::TextareaInputComponent.new(id: :foo, label:, hint:, modifiers:, error:)
Param Description Input