Sha256: 6dff572e77435146067508d7ba6f3e9f6b539fd1522830dfea891e3195e0d9ae
Contents?: true
Size: 427 Bytes
Versions: 14
Compression:
Stored size: 427 Bytes
Contents
# frozen_string_literal: true module Primer module Forms # :nodoc: class ToggleSwitch < BaseComponent delegate :builder, :form, to: :@input def initialize(input:) @input = input @input.add_label_classes("FormControl-label") @input.add_input_classes("FormControl-toggleSwitchInput") @input.input_arguments[:hidden] = "hidden" if @input.hidden? end end end end
Version data entries
14 entries across 14 versions & 1 rubygems