Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 902 Bytes

Readme.md

File metadata and controls

31 lines (21 loc) · 902 Bytes

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