Skip to main content
You are currently viewing the documentation for Filament 2.x, which is a previous version of Filament.Looking for the current stable version? Visit the 5.x documentation.
Icon columns render a Blade icon component representing their contents:
You may also pass a callback to activate an option, accepting the cellโ€™s $state and $record:

Customizing the color

Icon columns may also have a set of icon colors, using the same syntax. They may be either primary, secondary, success, warning or danger:

Customizing the size

The default icon size is lg, but you may customize the size to be either xs, sm, md, lg or xl:

Handling booleans

Icon columns can display a check or cross icon based on the contents of the database column, either true or false, using the boolean() method:

Customizing the boolean icons

You may customize the icon representing each state. Icons are the name of a Blade component present. By default, Heroicons v1 are installed:

Customizing the boolean colors

You may customize the icon color representing each state. These may be either primary, secondary, success, warning or danger: