I am embedding icons to Miro Board using bottomBar extension, i am able to add Circle icon but i want to add help icon , book icons and other icons.
Please let me know how to get the html of icons.
I am embedding icons to Miro Board using bottomBar extension, i am able to add Circle icon but i want to add help icon , book icons and other icons.
Please let me know how to get the html of icons.
Hi
You can directly add the icon file (svg for example) into your project and load the icon from a file. A quick example of this in Javascript will be to add your icons into a folder in your project and to load them using:
import icon from "path_to_icon/icon.svg";
miro.onReady(() => {
miro.initialize({
extensionPoints: {
toolbar: {
title: "Example",
toolbarSvgIcon: icon,
librarySvgIcon: icon,
async onClick() {
await miro.board.ui.openLibrary("content.html", { title: "Example" });
},
},
},
});
});
Regards,
Anthony
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.