how to add a icons to the dropdown menu?

Thanks for your help !
No description
No description
Solution:
Oh, that's because you are adding the html as string not as blade code
Jump to solution
4 Replies
Mohamed Ayaou
Mohamed Ayaou3w ago
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 website
Glebka
GlebkaOP3w ago
it 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
Mohamed Ayaou
Mohamed Ayaou3w ago
Oh, that's because you are adding the html as string not as blade code
Mohamed Ayaou
Mohamed Ayaou3w ago
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.
Want results from more Discord servers?
Add your server