Sha256: 7e9bb10adcd24c62839bb2d035e4b964858fffe557505d5473fd5ef0b66193d8
Contents?: true
Size: 621 Bytes
Versions: 25
Compression:
Stored size: 621 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") wrap_classes = [ "FormControl-input-wrap", ] wrap_classes << Primer::Forms::Dsl::Input::INPUT_WIDTH_MAPPINGS[@input.input_width] if @input.input_width @field_wrap_arguments = { class: class_names(wrap_classes), hidden: @input.hidden? } end end end end
Version data entries
25 entries across 25 versions & 1 rubygems