phosphor-icons / vue

A flexible icon family for Vue
https://phosphoricons.com
MIT License
199 stars 20 forks source link

Export PhosphorIcon type #29

Open IanWitham opened 2 years ago

IanWitham commented 2 years ago

Hi, I'd like to ensure a PhosphorIcon is being passed as a prop, but unfortunately this type isn't exported by phosphor-vue.

What I'd like to do is this:

const props = defineProps<{
  label: string;
  icon: PhosphorIcon;
}>();

And then render with something like this:

    <component
      :is="icon"
      :size="20"
      :width="20"
      :weight="isActive ? 'fill' : 'regular'"
    />

Would exporting the PhosphorIcon type make sense?

dnlsndr commented 1 year ago

I'll have a look if we can implement something like that.

dubem-design commented 1 year ago

Would love this too

DerDeathraven commented 1 year ago

just ran into this issue... would be awesome

Alxilin commented 12 months ago

Hi guys, when are you planning to make a next major release to fix this issue? Just asking to understand if we need to fork the repo or to wait... Thanks :)