/heroicons-electric

Heroicons for Electric Clojure

Primary LanguageClojureEclipse Public License 2.0EPL-2.0

Clojars Project

Heroicons in Electric Clojure

Provides heroicons.electric for Electric Clojure, just like Heroicons provides @heroicons/react and @heroicons/vue for JavaScript.

Javascript:

import {ChevronUpDown} from "@heroicons/react/24/outline";

Electric Clojure:

(ns my-view
  (:require [hyperfiddle.electric3 :as e]
            [hyperfiddle.electric-dom3 :as dom]
            [heroicons.electric3.v24.outline :refer [chevron-up-down]]))

(e/defn MyIcon []
  (chevron-up-down (dom/props {:style {:width "1em"}})))

Build steps

  • git submodule init --recursive
  • clj -X:build build
  • env CLOJARS_USERNAME=username CLOJARS_PASSWORD=clojar-token clj -X:build deploy