© 2026 Hedgehog Software, LLC

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

Use same icon for different state in BadgeColumn

I need to use same icon class for different value, how to make it possible?
BadgeColumn::make('status')
  ->icons([
    'heroicon-o-clock' => 'Pending',
    'heroicon-o-clock' => 'Awaiting Confirmation',
  ])
BadgeColumn::make('status')
  ->icons([
    'heroicon-o-clock' => 'Pending',
    'heroicon-o-clock' => 'Awaiting Confirmation',
  ])

The structure above however looks impossible (and didn't work) as those values share the same key.

I tried something like this but still didn't work.
BadgeColumn::make('status')
  ->icons([
    'heroicon-s-clock' => ['Pending','Awaiting Confirmation'],
  ])
BadgeColumn::make('status')
  ->icons([
    'heroicon-s-clock' => ['Pending','Awaiting Confirmation'],
  ])


Any way to achieve that?
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

use $record in badgeColumn visibility
FilamentFFilament / ❓┊help
3y ago
closure in badgeColumn colors
FilamentFFilament / ❓┊help
3y ago
use filament icon in skill icon
FilamentFFilament / ❓┊help
3y ago
Different Form in the same resource
FilamentFFilament / ❓┊help
2y ago