© 2026 Hedgehog Software, LLC

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

Using `icons` with IconColumn

Hi,

I'm just playing with the Table Builder and using the User model for example.

I was looking at using the
IconColumn
IconColumn
on the
email_verified_at
email_verified_at
column, to show if it is verified or not. I think this class is better suited to a boolean field, but just trying it out.

I saw the
options
options
method was deprecated (though no mention of that in the docs) and saw it recommended to use
icons
icons
instead.

I tried:

IconColumn::make('email_verified_at')
  ->label('Email verified?')
  ->icons(fn ($record) => [
      'heroicon-o-x-mark' => is_null($record->email_verified_at),
      'heroicon-o-check-circle' => ! is_null($record->email_verified_at),
  ]),
IconColumn::make('email_verified_at')
  ->label('Email verified?')
  ->icons(fn ($record) => [
      'heroicon-o-x-mark' => is_null($record->email_verified_at),
      'heroicon-o-check-circle' => ! is_null($record->email_verified_at),
  ]),


But I get no icons.

I also tried with the
icon
icon
method and a ternary operator

->icon(fn ($record) => is_null($record->email_verified_at) ? 'heroicon-o-x-mark' : 'heroicon-o-check-circle'),
->icon(fn ($record) => is_null($record->email_verified_at) ? 'heroicon-o-x-mark' : 'heroicon-o-check-circle'),


This gets me a bit further and shows the ✅ but not the ❌

Perhaps I'm missing something?

Thanks.
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

IconColumn enum
FilamentFFilament / ❓┊help
3y ago
Using the IconColumn (boolean) within Table - I can change the icons but not the colors
FilamentFFilament / ❓┊help
3y ago
IconColumn not working
FilamentFFilament / ❓┊help
15mo ago
IconColumn no response
FilamentFFilament / ❓┊help
3y ago