(tw & kc)
Merge tailwind class collections in to props with keyword versions. Allows to split hiccup classes in multiple lines/keywords.
Examples: (tw :group.block.max-w-xs.mx-auto.rounded-lg.p-6.bg-white :shadow-lg.space-y-3.hover:text-red {:on-click #(println "click!")}) => {:class "group block max-w-xs mx-auto rounded-lg p-6 bg-white shadow-lg space-y-3 hover:text-red" :on-click #object[Function]}
Merge tailwind class collections in to props with keyword versions. Allows to split hiccup classes in multiple lines/keywords. Examples: (tw :group.block.max-w-xs.mx-auto.rounded-lg.p-6.bg-white :shadow-lg.space-y-3.hover:text-red {:on-click #(println "click!")}) => {:class "group block max-w-xs mx-auto rounded-lg p-6 bg-white shadow-lg space-y-3 hover:text-red" :on-click #object[Function]}
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close