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)


Thank you.

Thanks for visiting DEV, we’ve worked really hard to cultivate this great community and would love to have you join us. If you’d like to create an account, you can sign up here.