Visualize progress at a glance with color-coded progress bars for your Filament table. Perfect for inventory tracking, task completion, storage usage, event capacity, budget monitoring, and more with customizable thresholds and automatic status indicators.

You can install the package via Composer:
composer require tapp/filament-progress-bar-column
To include the TailwindCSS plugin classes, add the plugin to content in your tailwindcss.config.js file:
export default { // ... content: [ // ... './vendor/tapp/filament-progress-bar-column/resources/views/**/*.blade.php', './vendor/tapp/filament-progress-bar-column/src/**/*.php', ], // ...}
Filament recommends developers create a custom theme to better support plugin's additional Tailwind classes. After you have created your custom theme, add the Filament Progress Bar vendor path to your theme.css file, usually located in resources/css/filament/admin/theme.css:
@source '../../../../vendor/tapp/filament-progress-bar-column';
The column is simple by design. Just two required things:
'stock', 'quantity', 'tasks_completed')maxValue() method to calculate percentagesEverything else has sensible defaults but can be customized!
Add the ProgressBarColumn column to your Filament table:
use Tapp\FilamentProgressBarColumn\Tables\Columns\ProgressBarColumn; public static function table(Table $table): Table{ return $table ->columns([ // ... other columns ProgressBarColumn::make('stock') ->maxValue(100), ]);}
Define when the value should be considered "low" (warning state):
ProgressBarColumn::make('stock') ->maxValue(100) ->lowThreshold(10),
Customize the colors for each status:
ProgressBarColumn::make('stock') ->maxValue(100) ->lowThreshold(10) ->dangerColor('rgb(239, 68, 68)') // Red - when value ≤ 0 ->warningColor('rgb(245, 158, 11)') // Amber - when value ≤ threshold ->successColor('rgb(34, 197, 94)'), // Green - when value > threshold
You can use any valid CSS color format (hex, rgb, rgba, etc.):
ProgressBarColumn::make('stock') ->maxValue(100) ->dangerColor('#ef4444') ->warningColor('#f59e0b') ->successColor('#22c55e'),
Customize the labels displayed for each status:
ProgressBarColumn::make('stock') ->maxValue(100) ->lowThreshold(10) ->dangerLabel(fn ($state) => 'Out of stock') ->warningLabel(fn ($state) => "{$state} low stock") ->successLabel(fn ($state) => "{$state} in stock"),
Use closures for dynamic max values and thresholds:
ProgressBarColumn::make('stock') ->maxValue(fn ($record) => $record->warehouse_capacity) ->lowThreshold(fn ($record) => $record->reorder_point),
ProgressBarColumn::make('quantity') ->label('Stock') ->maxValue(100) ->lowThreshold(15) ->dangerLabel(fn ($state) => 'Out of stock') ->warningLabel(fn ($state) => "{$state} low stock") ->successLabel(fn ($state) => "{$state} in stock"),
ProgressBarColumn::make('tasks_completed') ->label('Progress') ->maxValue(fn ($record) => $record->total_tasks) ->lowThreshold(fn ($record) => $record->total_tasks * 0.3) ->successLabel(fn ($state, $record) => "{$state}/{$record->total_tasks} tasks"),
ProgressBarColumn::make('storage_used_gb') ->label('Storage') ->maxValue(fn ($record) => $record->storage_quota_gb) ->lowThreshold(fn ($record) => $record->storage_quota_gb * 0.8) ->successLabel(fn ($state, $record) => "{$state}GB / {$record->storage_quota_gb}GB"),
ProgressBarColumn::make('registered_attendees') ->label('Capacity') ->maxValue(fn ($record) => $record->max_capacity) ->lowThreshold(fn ($record) => $record->max_capacity * 0.9) ->dangerLabel(fn ($state) => "No registration") ->warningLabel(fn ($state) => "{$state} - Almost full!") ->successLabel(fn ($state) => "{$state} registered"),
use Tapp\FilamentProgressBarColumn\Tables\Columns\ProgressBarColumn; public static function table(Table $table): Table{ return $table ->columns([ TextColumn::make('id'), TextColumn::make('name'), ProgressBarColumn::make('stock') ->label('Current Stock') ->maxValue(fn ($record) => $record->max_capacity) ->lowThreshold(20) ->dangerColor('#dc2626') ->warningColor('#f97316') ->successColor('#16a34a') ->dangerLabel(fn ($state) => 'Out of stock') ->warningLabel(fn ($state) => "{$state} low stock") ->successLabel(fn ($state) => "{$state} in stock"), TextColumn::make('price') ->money('usd'), ]);}
maxValue(int | Closure $value)Set the maximum value for the progress bar. This is used to calculate the percentage.
lowThreshold(int | Closure $value)Set the threshold below which the status is considered "warning". If not set, only "danger" (≤0) and "success" (>0) states are used.
dangerColor(string | array | Closure $color)Set the color for the danger state (when value ≤ 0). Default: rgb(244, 63, 94) (pink/red).
warningColor(string | array | Closure $color)Set the color for the warning state (when value ≤ threshold). Default: rgb(251, 146, 60) (orange).
successColor(string | array | Closure $color)Set the color for the success state (when value > threshold). Default: rgb(34, 197, 94) (green).
dangerLabel(string | Closure $label)Set the label for danger state. The closure receives the current value as $state. Default: fn ($state) => "{$state}".
warningLabel(string | Closure $label)Set the label for warning state. The closure receives the current value as $state. Default: fn ($state) => "{$state}".
successLabel(string | Closure $label)Set the label for success state. The closure receives the current value as $state. Default: fn ($state) => "{$state}".
The column automatically determines the status based on the current value:
The progress bar width is calculated as:
percentage = (currentValue / maxValue) * 100
The percentage is clamped between 0 and 100.
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.