Files
project-work/worker-toolkit-stocks-in-the-future/repo/app/helpers/components/textarea_helper.rb
Eric Bell 392781f7aa chore: init commit
in worker.../repo/GITFOLDER.zip is the .git folder.
2026-08-11 14:44:09 -04:00

20 lines
486 B
Ruby

# frozen_string_literal: true
module Components
module TextareaHelper
def render_textarea(name:, label: false, id: nil, value: nil, **options)
options.reverse_merge!(
rows: 3, required: false, disabled: false,
readonly: false, class: "", label: false, placeholder: "Type here..."
)
render partial: "components/ui/textarea", locals: {
label:,
name:,
value:,
id:,
options: options
}
end
end
end