rasteiner / kirby-iconify
Iconify support
Package info
github.com/rasteiner/kirby-iconify
Type:kirby-plugin
pkg:composer/rasteiner/kirby-iconify
1.0.0
2025-08-23 16:04 UTC
Requires
This package is not auto-updated.
Last update: 2026-03-08 17:36:14 UTC
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.