Summary
Read-only table column for displaying blade-icons values stored by IconPickerField. Renders the SVG icon with optional human label, technical name, semantic color, and size tokens shared with the flex-field design system.| Class | Bjanczak\FilamentFlexFields\Filament\Tables\Columns\IconColumn |
| Context | Filament tables ($table->columns([...])) |
| State type | string|null — full icon name (e.g. heroicon-o-star) |
| Parent | Filament\Tables\Columns\TextColumn |
| Playground | icon-column slug in Flex Fields playground |
Import alias: Filament ships its ownIconColumn. When you need both, alias this class:use Bjanczak\FilamentFlexFields\Filament\Tables\Columns\IconColumn as FlexIconColumn;
Basic usage
Standard Icon
Labeled Status Icon
Configuration API
All methods acceptClosure unless noted.
| Method | Type | Default | Description |
|---|---|---|---|
iconSize(string $size) | Setup | 'md' | sm, md, lg |
iconColor(string|array $color) | Setup | null | Semantic Filament color |
showLabel(bool $condition) | Setup | false | Show human-readable label |
showName(bool $condition) | Setup | false | Show technical icon name |
labelUsing(Closure $callback) | Setup | default | Custom label resolver |
Real-world examples
Navigation Table
Debug / Developer View
Performance
- SVG Cache: Server-side SVG HTML is cached to prevent repeated disk lookups.
- Render Cache: Per-request caching of rendered column HTML.
- Lazy CSS: Stylesheets are loaded only when the column renders.
Playground
/admin/flex-fields-playground/icon-column
See Playground for setup.
Related components
| Component | When to use instead |
|---|---|
| IconPickerField | Form field for selecting icons |
| UserColumn | Avatar and user display column |
| RatingColumn | Star rating display column |
CSS classes (reference)
| Class | Role |
|---|---|
fff-icon-column | Column cell root |
fff-icon-column--{sm|md|lg} | Size modifiers |
fff-icon-column--with-label | Icon + text layout |
fff-icon-column__icon | SVG wrapper |
fff-icon-column__text | Label/name stack |
fff-icon-column__label | Human-readable label |
fff-icon-column__name | Technical icon name |