Liking cljdoc? Tell your friends :D
All platforms.

tailwind-hiccup-tooling.core


twclj/s

(tw & keyword-classes)

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]}
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close