palmiak / unicon-for-statamic
Requires
- statamic/cms: ^5.0
- unicon-rocks/unicon-laravel: 0.4.1
This package is auto-updated.
Last update: 2025-01-27 23:18:36 UTC
README
Unicon for Statamic
Unicon 🦄 is a package for Laravel that enables seamless, on-demand integration of over 200,000 icons from the Iconify API, with caching for optimized performance.
Huge thanks to Nicolas Hedger for creating the Unicon package.
What does this addon do?
It allows you to install Unicon inside of your Statamic projects and adds a tag unicon
that will enable you to use Unicon inside of Antlers files.
How to Install
Just run the following command from your project root:
composer require palmiak/unicon-for-statamic
You can optionally publish the configuration file by running:
php artisan vendor:publish --tag=unicon-config
Check the configuration reference for more details.
How to Use
Antlers
Just use {{ unicon name='heroicons:clock' }}
inside of any antlers file.
If you want to add some classes, you can do it by using {{ unicon name='heroicons:clock' class="some_class" }}
.
Blade
Unicon provides blade support out of the box.