Closed seansmyth closed 5 months ago
I can appreciate that! Would you mind explaining your use case or what problems sprites are causing? I'd appreciate more context so I can decide if sprites should remain the default in future versions.
I will definitely be exposing an option to inline SVGs in v1. Sorry for the inconvenience!
Hi there,
Thanks for replying.
My use case is atypical, in fairness.
Working in a small agency, we build out 3/4 templates for a project. These are static HTML. We build the project and hand these compiled JS, HTML and CSS files over to the Backend team where they then integrate these templates into the CMS of their choosing.
So, in this case, we don't know if a spirite has been used on the page already or not.
Imagine a testimonial block that has large quote icon in the background.
A page that is created by the client when using the template we provide might use one or two of these. So we can't really know if the second one is to be a sprite.
In our use case, it'd be handiest to just have the SVG code output twice.
Hope that gives a bit of context!
What version of
astro-icon
are you using?^1.0.2
Astro Info
If this issue only occurs in one browser, which browser is a problem?
All
Describe the Bug
Hi there,
I've used this library before and won't like using the SVG as spirtes option.
I want them to just be inline, just like what you have on your site. https://www.astroicon.dev/
However, I don't see any mention of configuring this in the docs or googling.
Thanks
What's the expected result?
*
Link to Minimal Reproducible Example
https://astro.new/latest