Replies: 1 comment
-
You can use SVG just like HTML in Astro components: ---
const color = "green";
---
<svg width="100" height="100">
<circle cx="50" cy="50" r="40" fill={color} />
</svg> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I suppose it's not possible to inline SVG in Astro without installing additional packages? According to this link, you can import SVG, but it needs to be wrapped in
<img>
tag.Beta Was this translation helpful? Give feedback.
All reactions