hopasports/blade-sporttype-icons
最新稳定版本:1.0.0
Composer 安装命令:
composer require hopasports/blade-sporttype-icons
包简介
A package to easily make use of Hopasports Sporttype icons in your Laravel Blade views.
README 文档
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.
统计信息
- 总下载量: 15
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: CC0-1.0
- 更新时间: 2024-10-25