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.13.0 lib/primer/forms/text_area.rb
primer_view_components-0.13.0 lib/primer/forms/text_area.rb
primer_view_components-0.12.0 lib/primer/forms/text_area.rb
primer_view_components-0.11.0 lib/primer/forms/text_area.rb
openproject-primer_view_components-0.12.1 lib/primer/forms/text_area.rb
primer_view_components-0.10.0 lib/primer/forms/text_area.rb
openproject-primer_view_components-0.11.0 lib/primer/forms/text_area.rb
openproject-primer_view_components-0.10.0 lib/primer/forms/text_area.rb
primer_view_components-0.9.0 lib/primer/forms/text_area.rb
openproject-primer_view_components-0.9.1 lib/primer/forms/text_area.rb
openproject-primer_view_components-0.9.0 lib/primer/forms/text_area.rb
openproject-primer_view_components-0.8.0 lib/primer/forms/text_area.rb
primer_view_components-0.8.0 lib/primer/forms/text_area.rb
primer_view_components-0.7.0 lib/primer/forms/text_area.rb
openproject-primer_view_components-0.7.0 lib/primer/forms/text_area.rb
openproject-primer_view_components-0.6.3 lib/primer/forms/text_area.rb
primer_view_components-0.6.0 lib/primer/forms/text_area.rb
primer_view_components-0.5.1 lib/primer/forms/text_area.rb
primer_view_components-0.5.0 lib/primer/forms/text_area.rb
primer_view_components-0.4.0 lib/primer/forms/text_area.rb