Commit fb887e95 authored by Bruno Burke's avatar Bruno Burke 😁

add on-click for bulma.form.button

parent 3c3c2811
Pipeline #45351 passed with stages
in 1 minute and 49 seconds
(ns lernmeister.components.bulma.form.button
(:require [lernmeister.components.bulma.form.control :refer [control]]))
(defn button [{:keys [expanded? static? icons]} & content]
(defn button [{:keys [expanded? static? icons on-click]} & content]
[control {:expanded? expanded?
:icons icons}
[:a.button {:class (when static? " is-static")}
{:class (when static? " is-static")}
(when on-click
{:on-click on-click}))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment