© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
3 replies
Gaspar

How to show FilamentIcon inside Placeholder

This example selects correct "icon class" (instead of icon itself).
I would like to show FilamentIcon instead.

Placeholder::make('boolean')
    ->content(fn (string $state): string => match ($state) {
        '1' => 'heroicon-o-check',
        default => 'heroicon-x-circle'
    }
)
Placeholder::make('boolean')
    ->content(fn (string $state): string => match ($state) {
        '1' => 'heroicon-o-check',
        default => 'heroicon-x-circle'
    }
)


Could not find example how to do it:
https://filamentphp.com/docs/3.x/support/icons
Icons - Core Concepts - Filament
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

Customize the placeholder inside the search box
FilamentFFilament / ❓┊help
3y ago
How to translate filament filepond placeholder?
FilamentFFilament / ❓┊help
2y ago
Show parent column inside CheckboxList
FilamentFFilament / ❓┊help
3y ago
Unable to add Actions Inside Placeholder content of edit modal form.
FilamentFFilament / ❓┊help
2y ago