Sha256: 4c46be2e130f46e2fdee12bafe447414623841b0e18d9ecaecbaa77797caf952
Contents?: true
Size: 614 Bytes
Versions: 16
Compression:
Stored size: 614 Bytes
Contents
# frozen_string_literal: true module Primer module Forms module Dsl # :nodoc: class ToggleSwitchInput < Input attr_reader :name, :label, :src, :csrf def initialize( name:, label:, src:, csrf: nil, **system_arguments ) @name = name @label = label @src = src @csrf = csrf super(**system_arguments) end def to_component ToggleSwitch.new(input: self) end def type :toggle_switch end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems