Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tatut/re-svg-icons
Reagent SVG icons
https://github.com/tatut/re-svg-icons
Last synced: 3 months ago
JSON representation
Reagent SVG icons
- Host: GitHub
- URL: https://github.com/tatut/re-svg-icons
- Owner: tatut
- License: mit
- Created: 2020-03-19T13:46:12.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-01-10T10:16:34.000Z (about 3 years ago)
- Last Synced: 2024-10-13T22:52:02.868Z (3 months ago)
- Language: Clojure
- Size: 530 KB
- Stars: 28
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# re-svg-icons
Free SVG icons as simple hiccup generating ClojureScript functions.
Contains MIT licensed icons ready to use in ClojureScript as simple SVG function
component. Icons can also be modified by passing an optional map of options for
the toplevel svg element (like dimensions or class).# Icon sources
The following MIT licensed icon sets are included in the library:
* [Feather icons](https://github.com/feathericons/feather)
* [Tabler Icons](https://github.com/tabler/tabler-icons)
* [Open Iconic](https://github.com/iconic/open-iconic)
* [Heroicons](https://github.com/refactoringui/heroicons)See [all icons here](https://tatut.github.io/re-svg-icons/all-icons.html).
# Demo and usage
## Basic usage
All icons are just functions that return SVG in hiccup format so
they can be used as a reagent component directly.```clojure
[:div "download icon: " [feather-icons/download]]
```All icons take optional options map.
See demo/re_svg_icons/demo.cljs for sample:![](demo/demo.png?raw=true)