hopasports / blade-sporttype-icons
A package to easily make use of Hopasports Sporttype icons in your Laravel Blade views.
1.0.0
2024-10-25 23:50 UTC
Requires
- php: ^8.1
- blade-ui-kit/blade-icons: ^1.6
- illuminate/support: ^10.0|^11.0
Requires (Dev)
- orchestra/testbench: ^8.0|^9.0
- phpunit/phpunit: ^10.0
README
Requirements
- PHP 8.1 or higher
- Laravel 10.0 or higher
Installation
composer require hopasports/blade-sporttype-icons
Blade 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.
Usage
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"/>
Raw SVG Icons
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"/>
Maintainers
Blade SportType Icons is developed and maintained by Eddie Palmans.
License
Blade SportType Icons is open-sourced software licensed under the CC0-1.0 license.