themesberg/flowbite-blade-icons
Use Flowbite Icons in Laravel Blade via Blade UI Kit. Provides outline and solid SVG icons as Blade components and @svg directive, with support for classes, attributes, and caching. PHP 8.1+ and Laravel 9+.
class="w-6 h-6 text-blue-500"), enabling zero-JS dynamic styling via Tailwind’s utility-first approach. Ideal for projects using Tailwind v3+.currentColor for fill/stroke, enabling automatic dark/light mode support with Tailwind’s dark: variants. Requires zero additional CSS.<img> tags). Requires:
php artisan vendor:publish --tag=flowbite-blade-icons --force
Useful for legacy systems or non-Laravel frontend frameworks.| Risk | Likelihood | Impact | Mitigation Strategy |
|---|---|---|---|
| Blade Component Cache Invalidation | Medium | High (broken icons) | Enable Blade Icons caching ('cache' => true in config) and clear cache post-update: php artisan view:clear. |
| Icon Naming Collisions | Low | Medium (broken rendering) | Prefix icons explicitly (e.g., <x-fwb-o-settings/>) or use @svg('fwb-o-settings'). |
| Tailwind CSS Class Conflicts | Low | Low (visual glitches) | Test with !important or scoped Tailwind classes (e.g., text-[color:var(--tw-text-opacity)]). |
| Performance Regression | Low | Medium (slow views) | Benchmark with Laravel Debugbar; enable caching to mitigate. |
| Future Laravel Deprecation | Low | High (breakage) | Monitor Laravel 14+ support via GitHub issues; fork if needed. |
| Limited Community Support | Medium | Medium (slow fixes) | Contribute fixes or use Blade Icons as a fallback. |
currentColor works with our Tailwind dark: classes.composer update) require Blade cache clearing? Automate this in CI/CD pipelines.composer require themesberg/flowbite-blade-icons
php artisan vendor:publish --tag=flowbite-blade-icons-config
// config/flowbite-blade-icons.php
'cache' => true,
<x-fwb-o-settings/>).class="w-6 h-6 text-blue-500").fwb-o-, fwb-s- prefixes).| Feature | Compatibility | Workaround |
|---|---|---|
| Laravel 9–13 | ✅ Full support | None |
| PHP 8.1+ | ✅ Required | Downgrade PHP or fork package |
| Blade Templating | ✅ Native support | None |
| Tailwind CSS | ✅ Direct class/attribute injection | None |
| Dark Mode | ✅ currentColor support |
Test with dark: variants |
| Livewire/Alpine | ⚠️ Static SVGs only | Use @svg directive for dynamic updates |
| Inertia/Vue/Svelte | ❌ No support | Use raw SVGs or switch to Font Awesome |
| Custom Icons | ❌ Limited to Flowbite’s set | Manually add SVGs to resources/svg/ and register Blade components |
How can I help you explore Laravel packages today?