Using the addIcon functionality for custom ribbon icons

Instead of using the in built ribbon icons, I decided to build my own custom svg to use. I saw on here that it was possible to use an svg as an icon if you use the addIcon() method. I’m just not exactly sure how I should implement this, but I’m assuming I can put this somewhere in my onLoad function and then use addRibbonIcon with the icon ID I created in order to do this. Let me know if I’m thinking about this the right way, and how I would call the addIcon() method to begin with.

Thanks for being patient, this is my first time building a plugin for obsidian.

Many plugins use custom icons in the ribbon area. You can review these repos to get ideas.

An example taken from dbfolder would be:

Here’s the tutorials on icons

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.