-
Thanks for giving us lots of nice icons! The icons delivered with the iTwin Viewer are in SVG format and you can view those with a suitable plugin in VSCode. What is the best way to preview the icons in itwinui-icons-react? TIA! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hi @rseydler 👋
Edit: We now have a dedicated site for viewing icons: https://itwin.github.io/iTwinUI-icons/ |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I wanted this so I came up with a hack. open https://unpkg.com/browse/@itwin/[email protected]/icons/ and read then paste the following javascript into your browser console to load the images into the left icon. document.querySelectorAll("tr").forEach((tr) =>
tr.children[0].innerHTML =
`<img src="${tr.children[1].children[0].href?.replace(/\/browse/, '')}"></img>`
) makes the page look like this: |
Beta Was this translation helpful? Give feedback.
Hi @rseydler 👋
@itwin/itwinui-icons-react
has the same icons as@itwin/itwinui-icons
.You can view them on unpkg: https://unpkg.com/@itwin/itwinui-icons/icons/Edit: We now have a dedicated site for viewing icons: https://itwin.github.io/iTwinUI-icons/