uwaiscode/blade-tablericons

一个易于使用 tablericons 的软件包

dev-master 2022-03-12 13:37 UTC

This package is auto-updated.

Last update: 2024-09-12 18:54:50 UTC


README

一个软件包,用于在 Laravel Blade 视图中轻松使用 Tablericons

要查看所有可用的图标,请参阅 SVG 目录 或在 tablericons.com 上预览。

要求

  • PHP 7.4 或更高版本
  • Laravel 8.0 或更高版本

安装

composer require uwaiscode/blade-tablericons

配置

Blade Tablericons 还提供了使用 Blade Icons 功能的能力,如默认类、默认属性等。如果您想配置这些,请发布 blade-tablericons.php 配置文件。

php artisan vendor:publish --tag=blade-tablericons-config

使用方法

图标可以作为自闭合的 Blade 组件使用,这些组件将被编译为 SVG 图标

<x-tablericon-home/>

您还可以向图标组件传递类

<x-tablericon-home class="w-6 h-6 text-gray-500"/>

甚至可以使用内联样式

<x-tablericon-home style="color: #555"/>