Repository navigation
Replies: 2 comments
|
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> |
0 replies
|
We're closing stale and outdated discussion to keep only the discussions still relevant to the current project version and/or the current docs state. It seems the question as been resolved, so I'm closing this. By the way, since Astro 5.7 you can also use SVG components now! If you think this is a mistake and that this discussion should remain open, please feel free to ping me, I'll take a second look at it. Thank your for your contribution! |
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.All reactions