cooper / blade-blueprint-icons
一个用于在 Laravel Blade 视图中轻松使用 Blueprint 图标的软件包。
v0.0.4
2023-02-14 00:56 UTC
Requires
- php: ^8.0
- blade-ui-kit/blade-icons: ^1.0
- illuminate/support: ^9.0
Requires (Dev)
- orchestra/testbench: ^7.0
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2024-09-24 03:26:47 UTC
README
一个用于在 Laravel Blade 视图中轻松使用 Blueprint 图标 的软件包。
查看所有可用图标,请参阅 SVG 目录 或在 Blueprint 图标 中预览。
要求
- PHP 8.0 或更高版本
- Laravel 9.0 或更高版本
安装
composer require cooper/blade-blueprint-icons
使用方法
图标可以作为自闭合的 Blade 组件使用,它们将被编译成 SVG 图标
<x-blueprint-add/>
您也可以向图标组件传递类
<x-blueprint-add class="text-primary"/>
并且还可以使用内联样式
<x-blueprint-add style="color: #666"/>
原始 SVG 图标
如果您想将原始 SVG 图标作为资产使用,可以使用以下命令发布它们
php artisan vendor:publish --tag=blade-blueprint-icons --force
然后在视图中使用它们,如下所示
<img src="{{ asset('vendor/blade-blueprint-icons/add.svg') }}" width="10" height="10"/>
Blade 图标
Blade IconPark 图标在底层使用 Blade 图标。请参阅 Blade 图标的 README 了解更多功能。
维护者
Blade Blueprint 图标由 Blueprint 开发和维护。
Blade 图标由 Dries Vints 开发和维护。
许可证
Blade IconPark 图标是开源软件,许可协议为 MIT 协议。