how to add a icons to the dropdown menu?
Thanks for your help !
4 Replies
If you are just using html like that then filament comes with Laravel blade icons which can be used like this:
<x-heroicon-o-pen class="size-6" />
the icon name is from my head check the blades icons websiteit is not working, when i add icon like this its add icon to the html structure but i cant see it in a web
Solution
Oh, that's because you are adding the html as string not as blade code
this is an example of who to use html strings and blade code inside php:
new HtmlString(Blade::render('<x-heroicon-o-pen class="size-6" />'))
you might need to pass a function returning that, not sure.