# frozen_string_literal: true module Yattho 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