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 Hedgerhttps://github.com/nhedger/ for creating the Unicon package.
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.
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.
Just use {{ unicon icon='heroicons:clock' }}
inside of any antlers file.
If you want to add some classes, you can do it by using {{ unicon icon='heroicons:clock' class="some_class" }}
.
Unicon provides blade support out of the box.