schmeits / filament-4-tabler-icons
Tabler icons as a typed enum for Filament 4 and 5, built on blade-tabler-icons.
Package info
github.com/schmeits/filament-4-tabler-icons
pkg:composer/schmeits/filament-4-tabler-icons
Fund package maintenance!
Requires
- php: ^8.2
- filament/filament: ^4.13.2|^5.8.2
- secondnetwork/blade-tabler-icons: ^3.49
- spatie/laravel-package-tools: ^1.15.0
Requires (Dev)
- larastan/larastan: ^3.0
- laravel/pint: ^1.0
- nunomaduro/collision: ^8.0
- orchestra/testbench: ^10.0|^11.0
- pestphp/pest: ^3.2|^4.0
- pestphp/pest-plugin-arch: ^3.0|^4.0
- pestphp/pest-plugin-laravel: ^3.0|^4.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- spatie/laravel-ray: ^1.26
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-26 21:06:46 UTC
README
All Tabler icons as a typed enum for Filament, so you get autocompletion instead of icon name strings. The SVGs come from blade-tabler-icons.
Compatibility
| Package | Filament | Laravel | PHP |
|---|---|---|---|
| 1.1 | 4.x and 5.x | 12 and 13 | 8.2 or higher (Laravel 13: 8.3 or higher) |
| 1.0 | 4.x | 11 and 12 | 8.2 or higher |
The package name still says "filament-4" for backwards compatibility; it works on Filament 5 as well.
Installation
composer require schmeits/filament-4-tabler-icons
Usage
use Filament\Forms\Components\TextInput; use Schmeits\FilamentTablerIcons\Support\Icons\Tabler; TextInput::make('name') ->required() ->prefixIcon(Tabler::MoodSmile);
The enum covers the outline set. Look up icons on tabler.io/icons: the icon mood-smile becomes Tabler::MoodSmile.
Unknown icons
blade-tabler-icons has section configured as its fallback icon. A name that does not exist therefore shows the section icon instead of throwing an error. With the enum you cannot pick a name that does not exist, but if you also use plain strings and prefer an error, publish the config of blade-tabler-icons and set the fallback to an empty string:
php artisan vendor:publish --tag=blade-tabler-icons-config
// config/blade-tabler-icons.php 'fallback' => '',
Updating the icons
The enum is generated from the installed version of blade-tabler-icons. After updating that package, regenerate it:
composer update secondnetwork/blade-tabler-icons composer generate
The test suite fails when the enum is missing icons that the installed version ships.
Testing
composer test
composer analyse
Changelog
Please see CHANGELOG for more information on what has changed recently.
Security
Please see our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.