mitydigital / iconamic
The SVG icon selector fieldtype and tag for Statamic.
Installs: 21 070
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 1
Forks: 1
Open Issues: 0
Type:statamic-addon
Requires
- php: ^8.2
- statamic/cms: ^4.0 || ^5.0
Requires (Dev)
- laravel/pint: ^1.16
- orchestra/testbench: ^6.9|^7.1
- phpunit/phpunit: ^9.5
README
Iconamic is an SVG icon picker fieldtype and tag for Statamic 4 and 5
Features
Iconamic allows you to have a folder of SVG icons in your site (or even an Asset container if you want your authors to be able to upload them too) and provides you with a fieldtype to pick an icon from your list with a neat little preview of your SVG too.
In your Antlers template, use the Iconamic tag to check if an icon exists (in case you have extra markup to include or exclude), and inject the SVG contents in to your page markup.
This addon features:
- Iconamic fieldtype for icon selection
- Iconamic tag to inject an SVG icon in to your markup using Antlers (Regex or Runtime)
- Can be used in your Blueprints, including in Bard Sets and even within a Replicator
- Configure a path and path helper for all fieldtypes to use by default
- Override a specific instance to use a different path and/or path helper
- Performs some minor tweaks to your SVG to prevent duplicate IDs being output
Documentation
See the documentation for detailed installation, configuration and usage instructions.
Support
We love to share work like this, and help the community. However it does take time, effort and work.
The best thing you can do is log an issue.
Please try to be detailed when logging an issue, including a clear description of the problem, steps to reproduce the issue, and any steps you may have tried or taken to overcome the issue too. This is an awesome first step to helping us help you. So be awesome - it'll feel fantastic.
Credits
License
The MIT License (MIT). Please see License File for more information.