A package to easily make use of Iconoir in your Laravel Blade views.
For a full list of available icons see the resources/svg directory or search
- PHP 7.4 or higher
- Laravel 8.0 or higher
composer require andreiio/blade-iconoirIcons can be used a self-closing Blade components which will be compiled to SVG icons:
<x-iconoir-bookmark />You can also pass classes to your icon components:
<x-iconoir-mail class="w-6 h-6 text-gray-500 fill-current" />And even use inline styles:
<x-iconoir-warning-triangle-solid style="fill: #F00" />If you want to use the raw SVG icons as assets, you can publish them using:
php artisan vendor:publish --tag=blade-iconoir --forceThen use them in your views like:
<img src="{{ asset('vendor/blade-iconoir/bicycle.svg') }}" width="10" height="10"/>Blade Iconoir uses Blade Icons under the hood. Please refer to the Blade Icons readme for additional functionality.
composer testThis project is licensed under the MIT License (MIT) – see the LICENSE file for details.