andreiio/blade-iconoir 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

andreiio/blade-iconoir

最新稳定版本:4.7.0

Composer 安装命令:

composer require andreiio/blade-iconoir

包简介

A package to easily make use of Iconoir in your Laravel Blade views.

README 文档

README

Blade Iconoir

A package to easily make use of Iconoir in your Laravel Blade views.

Latest Version on Packagist Software License Build Status Style CI Total Downloads

For a full list of available icons see the resources/svg directory or search

Requirements

  • PHP 7.4 or higher
  • Laravel 8.0 or higher

Install

composer require andreiio/blade-iconoir

Usage

Icons 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" />

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-iconoir --force

Then use them in your views like:

<img src="{{ asset('vendor/blade-iconoir/bicycle.svg') }}" width="10" height="10"/>

Blade Icons

Blade Iconoir uses Blade Icons under the hood. Please refer to the Blade Icons readme for additional functionality.

Testing

composer test

Credits

License

This project is licensed under the MIT License (MIT) – see the LICENSE file for details.

统计信息

  • 总下载量: 102.8k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 1
  • 依赖项目数: 2
  • 推荐数: 1

GitHub 信息

  • Stars: 6
  • Watchers: 1
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-05-21