Sha256: c06f13ab074d5213c05b66d76359f2fc1f4240f0caa9dc3ee29091289b9da29e

Contents?: true

Size: 403 Bytes

Versions: 11

Compression:

Stored size: 403 Bytes

Contents

module Components::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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
shadcn-ui-0.0.15 app/helpers/components/textarea_helper.rb
shadcn-ui-0.0.14 app/helpers/components/textarea_helper.rb
shadcn-ui-0.0.13 app/helpers/components/textarea_helper.rb
shadcn-ui-0.0.12 app/helpers/components/textarea_helper.rb
shadcn-ui-0.0.10 app/helpers/components/textarea_helper.rb
shadcn-ui-0.0.8 app/helpers/components/textarea_helper.rb
shadcn-ui-0.0.5 app/helpers/components/textarea_helper.rb
shadcn-ui-0.0.4 app/helpers/components/textarea_helper.rb
shadcn-ui-0.0.3 app/helpers/components/textarea_helper.rb
shadcn-ui-0.0.2 app/helpers/components/textarea_helper.rb
shadcn-ui-0.0.1 app/helpers/components/textarea_helper.rb