© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•11mo ago•
5 replies
Jamie Cee

Icons in a blade

In a widget I pass some html into my calendar, and I want to use heroicons that comes out the box, but currently I cant get the icon to show...

 ($day->work_type === 'remote' ? '<x-filament::icon icon="heroicon-o-home" class="h-5 w-5 text-gray-500 dark:text-gray-400" />' : '') .
                        ($day->work_type === 'office' ? '<x-filament::icon icon="heroicon-o-office-building" class="h-5 w-5 text-gray-500 dark:text-gray-400" />' : '') .
 ($day->work_type === 'remote' ? '<x-filament::icon icon="heroicon-o-home" class="h-5 w-5 text-gray-500 dark:text-gray-400" />' : '') .
                        ($day->work_type === 'office' ? '<x-filament::icon icon="heroicon-o-office-building" class="h-5 w-5 text-gray-500 dark:text-gray-400" />' : '') .
Solution
Btw. you could just use the
svg()
svg()
helper if you just need to icon:
{{ svg('iconoir-flask-solid', ['h-5 w-5']) }}
{{ svg('iconoir-flask-solid', ['h-5 w-5']) }}
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Filament blade icons
FilamentFFilament / ❓┊help
3y ago
Rendering a table in a blade view
FilamentFFilament / ❓┊help
2mo ago
Using colours in a blade file
FilamentFFilament / ❓┊help
6mo ago
collapsible section in a blade file
FilamentFFilament / ❓┊help
3y ago