Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] Support svelte.js #5

Open
michaeloliverx opened this issue Jun 16, 2021 · 3 comments
Open

[Feature request] Support svelte.js #5

michaeloliverx opened this issue Jun 16, 2021 · 3 comments

Comments

@michaeloliverx
Copy link

Hey guys these icons are great!

Any plans to support svelte?

Some example icon libs already created:

@yhdgms1
Copy link

yhdgms1 commented Jun 16, 2021

Hi, @michael0liver, I did it, take a look: npm
p.s.: I have no relation to make lemonade

@michaeloliverx
Copy link
Author

@artemis69 thank you it works great :)

@yhdgms1
Copy link

yhdgms1 commented Jun 17, 2021

@artemis69 thank you it works great :)

It's not. An empty icon component weighs ~3.77 KB
In Solid or React components are cheap , but not in Svelte.

I have an idea how to make it better. Here's what it would look like:

<script>
import Icon, { BatteryIcon } from '@artemis69/iconic-svelte'
</script>

<Icon icon={BatteryIcon} width="36" height="36"/>

@michael0liver, please take a look at the example in Repl.

Do you think it would be convenient?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants