Icon on blade not showing
I am wondering how should we implement the Icon in blade file on Filament v4 . cant seems to make it working.
I have run
npm run build and even installed the custom theme. Really need some guidance. Thank you ๐Solution:Jump to solution
GitHub
Icon on custom component not rendering ยท Issue #18153 ยท filamentp...
Package filament/filament Package Version v4.1.6 Laravel Version v12.33.0 Livewire Version v3.6.4 PHP Version 8.4.13 Problem description The custom component is not rendering the heroicon icon Expe...
24 Replies
there should be an Icon in the middle of the coloured circle

Can you check the icon via DevTools? I guess something didn't work with the theme.
its just does not displays the icon

im on a fresh filament v4 btw.
๐ข
Could you check if any heroIcons work?
Or you could try perhaps
php artisan icons:clear or php artisan view:cleari did tried a few of the icons but it does not work. i am wondering if anyone has the same case as me.
Can you check whether your
switch works? Maybe add a some text before the icon.i have make a simple action with modal popup. still not displaying any icons.

Can you try whether it works with
@svg('heroicon-s-clock', ['class' => 'w-8 h-8']). And please check the HTML not only visual.Do you mean to see this?

That's with
@svg() directive?nope, give me a moment. will show with @ svg()
with @ svg() directive

the one with @ svg()
That's really weird.
Maybe try removing
vendor folder and reinstall itin v4 to render icons I use <x-filament::icon icon="heroicon-s-clock" />
the blade component is not mentioned in the docs but it's still present in the project
i have tried this. and it still not displaying any icons.
i tried on a new laravel project. still have the same behaviour. no icon. filament v4.1.6
Those icons are not part of Filament. Does it work outside of Filament?
really? can you link the icons that is part of Filament? Have not tried that.
i tried this:

this also not working on the blade file. im wondering if there are any alternative to this.
would love to know if there is any solutions for this ๐
have you tried to clear caches, compile assets? did you override any views? Because I just popped one of these
in my project using the latest version of filamentphp and it just worked
Solution
GitHub
Icon on custom component not rendering ยท Issue #18153 ยท filamentp...
Package filament/filament Package Version v4.1.6 Laravel Version v12.33.0 Livewire Version v3.6.4 PHP Version 8.4.13 Problem description The custom component is not rendering the heroicon icon Expe...