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
primer_view_components-0.36.5 app/lib/primer/forms/text_area.rb
primer_view_components-0.36.4 app/lib/primer/forms/text_area.rb
primer_view_components-0.36.3 app/lib/primer/forms/text_area.rb
primer_view_components-0.36.2 app/lib/primer/forms/text_area.rb
primer_view_components-0.36.1 app/lib/primer/forms/text_area.rb
primer_view_components-0.36.0 app/lib/primer/forms/text_area.rb
primer_view_components-0.35.2 app/lib/primer/forms/text_area.rb
primer_view_components-0.35.1 app/lib/primer/forms/text_area.rb
primer_view_components-0.35.0 app/lib/primer/forms/text_area.rb
primer_view_components-0.34.0 lib/primer/forms/text_area.rb
primer_view_components-0.33.0 lib/primer/forms/text_area.rb
primer_view_components-0.32.0 lib/primer/forms/text_area.rb
primer_view_components-0.31.0 lib/primer/forms/text_area.rb
openproject-primer_view_components-0.41.0 lib/primer/forms/text_area.rb
openproject-primer_view_components-0.40.0 lib/primer/forms/text_area.rb
primer_view_components-0.30.0 lib/primer/forms/text_area.rb
openproject-primer_view_components-0.39.1 lib/primer/forms/text_area.rb
openproject-primer_view_components-0.39.0 lib/primer/forms/text_area.rb
openproject-primer_view_components-0.38.0 lib/primer/forms/text_area.rb
primer_view_components-0.29.0 lib/primer/forms/text_area.rb