© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•5mo ago•
34 replies
Rolland

Icon on blade not showing

<div class="absolute -left-8 flex items-center justify-center w-8 h-8 rounded-full {{ $approval['status_color'] }} ring-4 ring-white dark:ring-gray-900">
                        @switch($approval['status_icon'])
                            @case('check')
                                <x-heroicon-s-check class="w-4 h-4 text-white" />
                            @break

                            @case('x-mark')
                                <x-heroicon-s-x-mark class="w-4 h-4 text-white" />
                            @break

                            @case('clock')
                                <x-heroicon-s-clock class="w-4 h-4 text-white" />
                            @break

                            @default
                                <x-heroicon-s-information-circle class="w-4 h-4 text-white" />
                        @endswitch
                    </div>
<div class="absolute -left-8 flex items-center justify-center w-8 h-8 rounded-full {{ $approval['status_color'] }} ring-4 ring-white dark:ring-gray-900">
                        @switch($approval['status_icon'])
                            @case('check')
                                <x-heroicon-s-check class="w-4 h-4 text-white" />
                            @break

                            @case('x-mark')
                                <x-heroicon-s-x-mark class="w-4 h-4 text-white" />
                            @break

                            @case('clock')
                                <x-heroicon-s-clock class="w-4 h-4 text-white" />
                            @break

                            @default
                                <x-heroicon-s-information-circle class="w-4 h-4 text-white" />
                        @endswitch
                    </div>


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
npm run build
and even installed the custom theme. Really need some guidance. Thank you 😄
Solution
@Rolland https://github.com/filamentphp/filament/issues/18153#issuecomment-3392914384
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...
Icon on custom component not rendering · Issue #18153 · filamentp...
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
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

icon not showing in action
FilamentFFilament / ❓┊help
2y ago
Showing icon preview
FilamentFFilament / ❓┊help
3y ago
Modal Blade component background not showing transparent.
FilamentFFilament / ❓┊help
2y ago
change icon color in blade view
FilamentFFilament / ❓┊help
2y ago