natemoo-re / astro-icon

Inline and sprite-based SVGs in Astro made easy!
https://astroicon.dev
Other
996 stars 57 forks source link

Will icons be used in framework components? #92

Closed recallwei closed 1 year ago

recallwei commented 1 year ago

I want to use icons in framework components (React or Vue). Currently seems not to support.

recallwei commented 1 year ago

Currently, Astro components can be passed through slots. Is it possible to use them directly in framework components?

stramel commented 1 year ago

It is not possible to use astro-icon directly in other framework components. You can use them inside framework components using slots.

Will work to add documentation around this.

Closing this as a duplicate of #41