https://github.com/janestreet/font_awesome_icons
An OCaml library for Font-Awesome SVG icons
https://github.com/janestreet/font_awesome_icons
List: font_awesome_icons
Last synced: 4 months ago
JSON representation
An OCaml library for Font-Awesome SVG icons
- Host: GitHub
- URL: https://github.com/janestreet/font_awesome_icons
- Owner: janestreet
- License: mit
- Created: 2024-08-13T19:45:50.000Z (10 months ago)
- Default Branch: master
- Last Pushed: 2024-08-23T20:34:53.000Z (10 months ago)
- Last Synced: 2025-02-06T13:01:42.681Z (4 months ago)
- Language: Standard ML
- Homepage:
- Size: 539 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-typography - font_awesome_icons - An OCaml library for Font-Awesome SVG icons. (OCaml)
README
Font-Awesome Icons
==================This is a library containing a set of font awesome icons for use in Bonsai apps. The iconset is fetched
from jane/external/font-awesome-icons which itself is pulled fromBelow is example usage of using an svg icon from the font_awesome_icons library within a Bonsai project.
jbuild
```
(rule (
(targets (font_awesome_icons.ml font_awesome_icons.mli))
(deps ())
(action
"%{bin:embed-font-awesome-icons} -output font_awesome_icons brands-amazon-pay")))(enforce_style (
(exceptions (font_awesome_icons.ml font_awesome_icons.mli)) (let_syntax ())))```
ml
```
open Bonsai_web.ContVdom.Node.inner_html_svg
~tag:"svg"
~attrs:[ Vdom.Attr.empty ]
~this_html_is_sanitized_and_is_totally_safe_trust_me:Font_awsome_icons.brands_amazon_pay_dot_svg
```