Download the PHP package starfolksoftware/statamic-heroicons without Composer
On this page you can find all versions of the php package starfolksoftware/statamic-heroicons. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download starfolksoftware/statamic-heroicons
More information about starfolksoftware/statamic-heroicons
Files in starfolksoftware/statamic-heroicons
Package statamic-heroicons
Short Description Use and easily customize Heroicons in your Statamic templates
License MIT
Informations about the package statamic-heroicons
Statamic Heroicons
A package to easily make use of Heroicons in your Statamic sites. This package is a wrapper over blade-ui-kit/blade-heroicons
.
For a full list of available icons see the SVG directory from the blade-ui-kit/blade-heroicons
repository or preview them at heroicons.com. Heroicons are originally developed by Steve Schoger and Adam Wathan.
If you're looking to use Heroicons v1, please use the v1 version of the package.
Requirements
- PHP 8.1 or higher
- Laravel 9.0 or higher
- Statamic 3.3 or higher
Apart from the requirements above, it is required that you use Statamic's new Runtime Antlers engine. Read more about it and how to enable it in Statamic's official documentation.
Documentation
Installation
First, require statamic-heroicons
as a Composer dependency:
If you need additional options, you can publish the blade-ui-kit/blade-heroicons
config. Make sure to also look into the icon caching feature provided by blade-ui-kit/blade-heroicons
.
Usage
Apart from a couple of reserved prop names (as
, scope
, variant
, icon
), any prop you pass (e.g. class
, style
, aria-hidden
etc.) to the tag will be added to the root SVG element.
The {{ heroicon }}
tag also allows you to pass dynamically binded attributes like you would use in a JavaScript framework like Alpine.js. The only gotcha is that you cannot use the shorthand syntax :class="condition ? 'text-red-500' : 'text-green-500'"
. You must use the full binding (e.g. x-bind:class
, v-bind:class
). Example:
Testing
Security
Only the latest version of statamic-heroicons
will receive security updates if a vulnerability is found.
If you discover a security vulnerability, please report it to Stefan Galescu straight away, via email. Please don't report security issues through GitHub Issues.
Sponsor Stefan
This addon is open-source, meaning anyone can use this addon in their sites for free!
However, maintaining and developing new features for open-source projects can take quite a bit of time. If you're using statamic-heroicons
in your production environment, please consider sponsoring me for however you consider to be a fair amount.
All versions of statamic-heroicons with dependencies
blade-ui-kit/blade-heroicons Version ^2.3
statamic/cms Version ^3.4 || ^4 || ^5