unplugin / unplugin-icons

🤹 Access thousands of icons as components on-demand universally.
https://www.npmjs.com/package/unplugin-icons
MIT License
3.66k stars 131 forks source link

feat: support qwik #262

Closed Leizhenpeng closed 1 year ago

Leizhenpeng commented 1 year ago

Description

Now it perfectly supports qwik ~ 🚀~

Linked Issues

https://github.com/antfu/unplugin-icons/issues/224

Additional context

demo

import { component$ } from '@builder.io/qwik'
import RiFlashlightLine from '~icons/ri/flashlight-line'

export default component$(() => {
  return (<h1> <RiFlashlightLine style="font-size: 2em; color: red"/> Welcome To Qwik With Icons </h1>)
})
Leizhenpeng commented 1 year ago

I actually don‘t want to use qwik-city to build demos, but qwik init does not provide other methods without it.

The complexity of the project initialized by qwik is terrible.

thx ur suggestion. I will modify the project structure in the example.

By the way, I wish you happy new year😘

Leizhenpeng commented 1 year ago

@antfu The example has been modified to the smallest feasible qwikversion.

麻烦安师傅来瞅瞅🥰~