- PHP 8.1 or higher
- Laravel 10.0 or higher
composer require hopasports/blade-sporttype-icons
Blade SportType Icons uses Blade Icons under the hood. Please refer to the Blade Icons readme for additional functionality. We also recommend to enable icon caching with this library.
Icons can be used as self-closing Blade components which will be compiled to SVG icons:
<x-sporttype-athletics/>
You can also pass classes to your icon components:
<x-sporttype-athletics class="w-6 h-6 text-gray-500"/>
And even use inline styles:
<x-sporttype-athletics style="color: #555"/>
If you want to use the raw SVG icons as assets, you can publish them using:
php artisan vendor:publish --tag=blade-sporttype-icons --force
Then use them in your views like:
<img src="{{ asset('vendor/blade-sporttype-icons/athletics.svg') }}" width="10" height="10"/>
Blade SportType Icons is developed and maintained by Eddie Palmans.
Blade SportType Icons is open-sourced software licensed under the CC0-1.0 license.