You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My team and I are working on project that uses Storybook.js and we are running into issues getting icon components to render in stories. We are using initializeIcons() from @fluentui/react/lib/Icons. We have added it to our .storybook/preview.tsx file like so:
However, this is not working. There are no errors being thrown, but the icons are not rendering for this story. Is there different guidance on how to use Fluent icon components in stories? Thanks!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
My team and I are working on project that uses Storybook.js and we are running into issues getting icon components to render in stories. We are using
initializeIcons()
from@fluentui/react/lib/Icons
. We have added it to our.storybook/preview.tsx
file like so:And then in our stories we are using the icons like so:
However, this is not working. There are no errors being thrown, but the icons are not rendering for this story. Is there different guidance on how to use Fluent icon components in stories? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions