Icons
With the icons
extension, you can register additional icons for use in the Panel.
The default icons are based on the Remix Icon set which you can also use for finding matching ones for your custom icons.
Example
As always, you first have to register the Plugin in a plugin folder's index.php
.
The second step is to create a corresponding index.js
file with the Panel plugin:
You can now use this plugin in your blueprints or or plugins, for example:
Viewbox
Kirby assumes that all icons are based on a 0 0 24 24
viewbox. If your SVG is based on a different viewbox, you can include the wrapping <svg>
tag to specifc the viewbox.