https://github.com/hyperfiddle/heroicons-electric
Heroicons for Electric Clojure
https://github.com/hyperfiddle/heroicons-electric
Last synced: 2 months ago
JSON representation
Heroicons for Electric Clojure
- Host: GitHub
- URL: https://github.com/hyperfiddle/heroicons-electric
- Owner: hyperfiddle
- License: epl-2.0
- Created: 2023-06-06T09:43:56.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-05T11:48:49.000Z (10 months ago)
- Last Synced: 2025-04-17T01:35:33.955Z (2 months ago)
- Language: Clojure
- Size: 28.3 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
- License: License.txt
Awesome Lists containing this project
README
[](https://clojars.org/com.hyperfiddle/heroicons-electric)
# Heroicons in Electric Clojure
Provides `heroicons.electric` for Electric Clojure, just like [Heroicons](https://github.com/tailwindlabs/heroicons) provides
`@heroicons/react` and `@heroicons/vue` for JavaScript.Javascript:
```javascript
import {ChevronUpDown} from "@heroicons/react/24/outline";
```Electric Clojure:
```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`