Preload Fonts in Storybook
Daniel Bellmas

Daniel Bellmas @danielbellmas

About: Full-Stack Developer

Joined:
Sep 20, 2021

Preload Fonts in Storybook

Publish Date: Oct 16 '22
0 0

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.

Comments 0 total

    Add comment