Skip to content

palmiak/unicon-for-statamic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unicon

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.