Sha256: 195d53a3fd81e07cfa3bc3b4452a4e687cd0568c1247c7900d756b7807c1f347
Contents?: true
Size: 619 Bytes
Versions: 2
Compression:
Stored size: 619 Bytes
Contents
# frozen_string_literal: true module Primer module Forms # :nodoc: class TextField < BaseComponent delegate :builder, :form, to: :@input def initialize(input:) @input = input @field_wrap_arguments = { class: class_names( "FormControl-input-wrap", Primer::Forms::Dsl::Input::SIZE_MAPPINGS[@input.size], "FormControl-input-wrap--trailingAction": @input.show_clear_button?, "FormControl-input-wrap--leadingVisual": @input.leading_visual? ), hidden: @input.hidden? } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
primer_view_components-0.0.114 | lib/primer/forms/text_field.rb |
primer_view_components-0.0.113 | lib/primer/forms/text_field.rb |