You are currently viewing the documentation for Filament 4.x, which is a previous version of Filament.Looking for the current stable version? Visit the 5.x documentation.
The default icon size is IconSize::Large, but you may customize the size to be either IconSize::ExtraSmall, IconSize::Small, IconSize::Medium, IconSize::ExtraLarge or IconSize::TwoExtraLarge:
use Filament\Tables\Columns\IconColumn;use Filament\Support\Enums\IconSize;IconColumn::make('status') ->size(IconSize::Medium)
Icon columns can display a check or “X” icon based on the state of the column, either true or false, using the boolean() method:
use Filament\Tables\Columns\IconColumn;IconColumn::make('is_featured') ->boolean()
If this attribute in the model class is already cast as a bool or boolean, Filament is able to detect this, and you do not need to use boolean() manually.
Optionally, you may pass a boolean value to control if the icon should be boolean or not:
use Filament\Tables\Columns\IconColumn;IconColumn::make('is_featured') ->boolean(FeatureFlag::active())