Files
integreat/src/cljs/auto_ap/views/components/switch_field.cljs

7 lines
242 B
Clojure

(ns auto-ap.views.components.switch-field)
(defn switch-field [{:keys [id label on-change checked class]}]
[:<>
[:input.switch {:type "checkbox" :id id :on-change on-change :checked checked :class class}]
[:label {:for id} label]])