-
I want to have a side label with a Material UI Icon in it. This is what I'm trying:
but when it renders the side label it doesn't render the icon, but instead: My question is: Is there a way to make this work? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Since Unovis's core is not native to React, you can't provide icons as React components. However, you can import Material UI icons as an icon font and provide an the exact characters code to
Don't forget to set the --vis-graph-icon-font-family : 'Material Icons' P.S. You can browse through the icons and find their character codes here: |
Beta Was this translation helpful? Give feedback.
Since Unovis's core is not native to React, you can't provide icons as React components. However, you can import Material UI icons as an icon font and provide an the exact characters code to
text
:Don't forget to set the
--vis-graph-icon-font-family
CSS variable to the name of your icon font, e.g.:P.S. You can browse through the icons and find their character codes here:
b1.png)