An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

[![Clojars Project](https://img.shields.io/clojars/v/com.hyperfiddle/heroicons-electric.svg)](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`