GitXplorerGitXplorer
j

font_awesome_icons

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
37d3f0f0b3e272b501697e4a4791b56d080374c0

v0.17~preview.129.36+325

ppublic-release committed 5 months ago
Verified
bd2020f3f4915c80b2de1e55a3b1257757ccfd81

Initial commit

ppublic-release committed 5 months ago

README

The README file for this repository.

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 from https://github.com/FortAwesome/Font-Awesome

Below 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.Cont 

Vdom.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