-
Notifications
You must be signed in to change notification settings - Fork 65
Hoplon with SVG
Marcelo Nomoto edited this page May 31, 2023
·
2 revisions
To include svg elements in your project add the hoplon.svg
namespace to your namespace declaration.
(ns my.app
(:require [hoplon.svg :as svg]))
Elements created from the hoplon.svg
namespace do not have the default HTML5 namespace but instead are created with the http://www.w3.org/2000/svg
namespace. This means attributes which are included as part of the HTML5 specification are not available to the svg elements. Many of the default HTML5 attributes are included as part of the svg specification and are available by prefixing the attribute keyword with :svg/*
.
(svg/circle :svg/class "foo bar baz")