Live demo to browse the icons: https://stronganchortech.com/inline-svg-icons-for-clojurescript/
A curated set of inline svgs for your ClojureScript/Reagent app, licensed under the MIT License.
Why generate svgs inline in code instead of just including an svg file?
In your project.clj's dependencies:
[com.stronganchortech/clojure-inline-svgs "2.0.0"]
To use:
(ns your-cool-project.core
(:require
[com.stronganchortech.clojure-inline-svgs.open-iconic :as open-iconic]
[com.stronganchortech.clojure-inline-svgs.strong-anchor-simple :as strong-anchor-simple]))
(defn your-reagent-component []
[:div
[open-iconic/check
{:on-click (fn [e] (println "Icon clicked."))}
"green"
"24px"]
[:p "There's an inline svg in this div!"]])
lein clean
lein figwheel dev
Figwheel will automatically push cljs changes to the browser.
Wait a bit, then browse to http://localhost:3449.
lein clean
lein cljsbuild once min
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close