Sha256: 05590c2d7e99bb884dcda4c3efd65b002521e6542328e656c5d1127b2ddc1222

Contents?: true

Size: 446 Bytes

Versions: 115

Compression:

Stored size: 446 Bytes

Contents

# frozen_string_literal: true

module Primer
  module Forms
    # :nodoc:
    class TextArea < BaseComponent
      delegate :builder, :form, to: :@input

      def initialize(input:)
        @input = input
        @input.add_input_classes("FormControl-input", "FormControl-textarea")

        @field_wrap_arguments = {
          class: class_names("FormControl-input-wrap"),
          hidden: @input.hidden?
        }
      end
    end
  end
end

Version data entries

115 entries across 115 versions & 2 rubygems

Version Path
openproject-primer_view_components-0.22.0 lib/primer/forms/text_area.rb
primer_view_components-0.18.0 lib/primer/forms/text_area.rb
openproject-primer_view_components-0.21.0 lib/primer/forms/text_area.rb
primer_view_components-0.17.0 lib/primer/forms/text_area.rb
openproject-primer_view_components-0.20.0 lib/primer/forms/text_area.rb
primer_view_components-0.16.1 lib/primer/forms/text_area.rb
primer_view_components-0.16.0 lib/primer/forms/text_area.rb
openproject-primer_view_components-0.19.0 lib/primer/forms/text_area.rb
primer_view_components-0.15.1 lib/primer/forms/text_area.rb
primer_view_components-0.15.0 lib/primer/forms/text_area.rb
openproject-primer_view_components-0.18.1 lib/primer/forms/text_area.rb
openproject-primer_view_components-0.17.1 lib/primer/forms/text_area.rb
openproject-primer_view_components-0.17.0 lib/primer/forms/text_area.rb
primer_view_components-0.14.0 lib/primer/forms/text_area.rb
openproject-primer_view_components-0.16.0 lib/primer/forms/text_area.rb
openproject-primer_view_components-0.15.0 lib/primer/forms/text_area.rb
openproject-primer_view_components-0.14.0 lib/primer/forms/text_area.rb
openproject-primer_view_components-0.13.1 lib/primer/forms/text_area.rb
primer_view_components-0.13.2 lib/primer/forms/text_area.rb
primer_view_components-0.13.1 lib/primer/forms/text_area.rb