rasteiner/kirby-iconify

Iconify support

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:kirby-plugin

1.0.0 2025-08-23 16:04 UTC

This package is not auto-updated.

Last update: 2025-08-24 14:47:35 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.