palmiak / unicon-for-statamic
Requires
- hedger/unicon: 0.3.0
- statamic/cms: ^5.0
This package is auto-updated.
Last update: 2024-11-21 01:23:48 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 Hedgerhttps://github.com/nhedger/ 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 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" }}
.
Blade
Unicon provides blade support out of the box.