rasteiner/kirby-iconify
最新稳定版本:1.0.0
Composer 安装命令:
composer require rasteiner/kirby-iconify
包简介
Iconify support
README 文档
README
Best used with OPcache driver: https://github.com/rasteiner/kirby-opcache
<?php return [ 'rasteiner.kirby-iconify' => [ 'defaultAttrs' => [ 'class' => 'h-[1em]', ], 'cache' => [ 'active' => true, 'type' => 'opcache', ], ], ];
Include the icon symbol definitions at the end of the template
site/snippets/footer.php:
<?= iconTable() ?>
</body>
</html>
Usage
Helper method
<?= icon('svg-spinners:blocks-wave', class: 'h-48 w-48 block text-emerald-500') ?>
Field method
<?= $block->icon()->toIcon()->use(class: 'h-16 w-16 text-emerald-500') ?>
KirbyText tag
Please go (icon: line-md:home-md), you're drunk.
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-08-23