robsontenorio / mary

Laravel Blade UI Components for Livewire 3
https://mary-ui.com
Other
1.04k stars 125 forks source link

Using custom blade-icon sets in <x-menu-item> #61

Closed aleex1848 closed 1 year ago

aleex1848 commented 1 year ago

i'm trying to use a custom icon set in <x-menu-item>.

I'm able to use my custom icons doing:
<x-hwkicons-o-dsr></x-hwkicons-o-dsr>
as well as doing
{{ svg('hwkicons-o-dsr') }}

but putting it in the icon attribute like this:
<x-menu-item title="DSR" icon="hwkicons-o-dsr" link="/modules/dsr/" /> gives error
Svg by name "hwkicons-o-dsr" from set "heroicons" not found

may it be possible to use icon from non-default-icon-set on x-menu-item ? Thanks!

Xety commented 1 year ago

Same here, i wanted to use the font-awesome set, but got the same error Svg by name "fas-right-to-bracket" from set "heroicons" not found. Maybe add a config where we can import the sets we want or something like that ?

robsontenorio commented 1 year ago

@aleex1848 @Xety

Yes, I will add a option to configure preferred iconset.

robsontenorio commented 1 year ago

@aleex1848 @Xety Done! Upgrade to latest release.

https://mary-ui.com/docs/components/icon

aleex1848 commented 1 year ago

@robsontenorio you are awesome, thank you!