DEV Community

Cover image for Preload Fonts in Storybook
Daniel Bellmas
Daniel Bellmas

Posted on

Preload Fonts in Storybook

Click here to see how to Preload Fonts

To make it work in Storybook, all we need to do is to utilize the preview-head.html file (create it in the .storybook folder) that serves the same purpose as the react-helmet-async library in react - injects its content into the head tag.

See the story-rendering section in the docs for more information about how we can add code that affects all stories.

Top comments (0)