blade-ui-kit/blade-icons
Use SVG icons in Laravel Blade with simple components and directives. Turn SVG files into or @svg('name') calls, support multiple icon sets/packages, and customize classes/attributes for consistent, reusable icons across your app.
Pros:
<x-icon-... />) for clean, reusable icon usage..ttf/.woff), improving scalability and performance.w-6 h-6) or custom CSS, aligning with modern frontend workflows.Cons:
resources/svg (or a custom path), which may clutter the project if not managed.<x-icon-camera />).php artisan vendor:publish --tag=blade-icons) and place SVGs in resources/svg.composer require commands (e.g., blade-ui-kit/blade-heroicons), but each set is self-contained.php artisan view:clear).UPGRADE.md) suggests risks are mitigated for minor/patch updates.resources/svg structure be needed (e.g., /icons/core, /icons/brands)?viewBox, fill) globally?text-blue-500).composer require blade-ui-kit/blade-icons.<i class="fas fa-camera"></i> → <x-icon-camera />).@once directives for static pages).<x-icon-name />) and directive syntax (@svg('name', 'classes')).@icon('name', ['fill' => 'red'])).stroke-current for dynamic colors).blade-ui-kit/blade-heroicons).fill rules).composer update blade-ui-kit/blade-heroicons).resources/svg for missing/corrupt files.php artisan view:clear) during development.blade-icons).@error Blade directives).home in multiple packages).php artisan optimize:clear for large sets.aria-hidden or role="img" where needed.How can I help you explore Laravel packages today?