Sha256: 4d76d9f171078370bd6316d7113bf436d175ee2bb7fd2030b11fa5d9e0d53e53
Contents?: true
Size: 580 Bytes
Versions: 7
Compression:
Stored size: 580 Bytes
Contents
# frozen_string_literal: true module Primer module Forms # :nodoc: class FormControl < BaseComponent delegate :builder, :form, to: :@input def initialize(input:) @input = input @input.add_label_classes("FormControl-label") @form_group_arguments = { class: class_names( "FormControl", "flex-1", "width-full", "FormControl--fullWidth" => @input.full_width? ) } @form_group_arguments[:hidden] = "hidden" if @input.hidden? end end end end
Version data entries
7 entries across 7 versions & 1 rubygems