blade-ui-kit/blade-heroicons
Use Heroicons in Laravel Blade via simple SVG components. Supports passing classes/styles, Blade Icons features (defaults, caching), and optional config publishing. Requires PHP 8+ and Laravel 9+.
Pros:
<x-heroicon-* />) for consistency with Laravel’s ecosystem.Cons:
blade-icons), adding an indirect dependency layer.composer require command with no additional configuration for basic usage.blade-heroicons.php for global defaults (e.g., default classes/attributes).w-6 h-6 text-gray-500).@click events).img tags, CSS).storage/framework/views).blade-icons config) post-deployment.@svg directive (compatible with Laravel 9+).composer require blade-ui-kit/blade-heroicons
php artisan vendor:publish --tag=blade-heroicons-config
config/blade-icons.php:
'cache' => true,
storage/logs).php artisan vendor:publish --tag=blade-heroicons --force
blade-ui-kit/blade-heroicons and blade-icons for breaking changes (Heroicons updates may rename icons).php artisan view:clear) if icons are updated.blade-icons or Heroicons.heroicon-o-arrow-left → heroicon-s-arrow-left) to avoid breaking changes.blade-heroicons.php in version control.x-heroicon-o-arrow-left vs. x-heroicon-s-arrow-left).w-6 h-6).view:clear is run after config changes.blade-icons (reduces Blade compile time).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Blade compilation errors | Broken views | Test in staging; use view:clear |
| Heroicons update renames icons | Broken UI | Audit changelog; update references incrementally |
| Caching disabled | Slower Blade compiles | Enable caching in config |
| Raw SVG publishing fails | Missing static assets | Verify vendor:publish permissions |
| Tailwind/utility class conflicts | Styling issues | Use custom classes or inline styles |
heroicon-o-arrow-left, heroicon-s-user).How can I help you explore Laravel packages today?