Introduction
Columns define how data is displayed in each row of your table. Filament provides several built-in column types, all located in theFilament\Tables\Columns namespace.
Available column types
Text Column
Display text with formatting, badges, colors, and icons
Icon Column
Show icons or boolean states with customizable colors
Image Column
Display images with various layouts and styles
Color Column
Preview color values as visual swatches
Editable columns
These columns allow users to update data directly in the table:Select Column
Dropdown selection for quick updates
Toggle Column
Boolean switch for instant toggling
Text Input Column
Inline text editing
Checkbox Column
Checkbox for boolean values
Text Column
The most common column type for displaying text content:Formatting text
- Colors
- Badges
- Icons
- Dates
Apply colors to text using the
color() method:Text column methods
badge(bool | Closure $condition = true)
Display the text as a badge with background color.
color(string | array | Closure $color)
Set the text color. Accepts color names like 'primary', 'success', 'danger', etc.
icon(string | Closure $icon)
Add an icon to the column.
iconColor(string | array | Closure $color)
Set the icon color independently from text color.
iconPosition(IconPosition | Closure $position)
Position the icon before or after text.
date(string $format = null)
Format the value as a date.
dateTime(string $format = null)
Format the value as a date and time.
time(string $format = null)
Format the value as a time.
money(string $currency = 'USD', int $divideBy = 0)
Format as currency.
numeric(int $decimalPlaces = 0)
Format as a number with separators.
formatStateUsing(Closure $callback)
Custom formatting function.
limit(int $length = 100, string $end = '...')
Truncate long text.
words(int $words = 100, string $end = '...')
Limit by word count.
wrap()
Allow text to wrap onto multiple lines.
copyable()
Add a copy-to-clipboard button.
description(string | Closure $description)
Add helper text below the column value.
Icon Column
Display icons or boolean states:Boolean icons
Custom icon mappings
Icon column methods
boolean(bool | Closure $condition = true)
Configure as a boolean column.
trueIcon(string | Closure $icon)
Icon to display when value is true.
falseIcon(string | Closure $icon)
Icon to display when value is false.
trueColor(string | array | Closure $color)
Color for true state.
falseColor(string | array | Closure $color)
Color for false state.
size(IconSize | string | Closure $size)
Set icon size.
Image Column
Display images from storage or URLs:Image layouts
- Circular
- Square
- Stacked
Storage configuration
Image column methods
circular(bool | Closure $condition = true)
Display image as a circle.
square(bool | Closure $condition = true)
Force square aspect ratio.
imageWidth(int | string | Closure $width)
Set image width in pixels.
imageHeight(int | string | Closure $height)
Set image height in pixels.
disk(string | Closure $disk)
Specify storage disk.
visibility(string | Closure $visibility)
Set visibility ('public' or 'private').