Sha256: 1b578997f54006007b61822ff1c8816106fff8bda044a0c30ec1871bb935afb3
Contents?: true
Size: 797 Bytes
Versions: 45
Compression:
Stored size: 797 Bytes
Contents
# frozen_string_literal: true module Ariadne module Form # :nodoc: module FormControl class Component < Ariadne::Form::BaseComponent delegate :builder, :form, to: :@input def initialize(input:, tag: :div, **system_arguments) @input = input @tag = tag @input.add_label_classes("FormControl-label") @form_group_arguments = { # **system_arguments, # class: class_names( # system_arguments[:class], # system_arguments[:classes], # "FormControl", # "width-full FormControl--fullWidth" => @input.full_width?, # ), } @form_group_arguments[:hidden] = "hidden" if @input.hidden? end end end end end
Version data entries
45 entries across 45 versions & 1 rubygems