# frozen_string_literal: true module Maquina module Application module Components class CheckboxComponent < ComponentBase def view_template div(**control_html) do div(class: "flex h-5 items-center") do @form.check_box attribute_name, **input_html end div(class: "text-sm leading-6") do @form.label attribute_name, class: "label #{label_css_class}" help_template end end end end end end end