simple-image-tutorial icon indicating copy to clipboard operation
simple-image-tutorial copied to clipboard

Cannot use custom svg path / icons

Open jellysquider opened this issue 4 years ago • 0 comments

Whenever I provide a custom SVG tag string or use require('./icon.svg') my ToolBar just shows empty square instead of an icon.

What I tried:

  • providing any SVG path from this website and using width="19" height="13" viewBox="0 0 19 13" xmlns="http://www.w3.org/2000/svg" settings
  • creating simple SVG path myself using this path builder
  • using any simple letter path from this pen
  • using any SVG from FontAwesome icon pack

Of course, if I use the SVG path provided in your repos icons show up as expected.

Is there any reason for this? Do you have a list of icons I could use that would work? I'd like to have even something as simple as a letter instead of picture icon.

Thank you for making this editor! It's great :)

jellysquider avatar Apr 13 '20 01:04 jellysquider