Custom HTML for iframe (was 'Using Typekit')
See original GitHub issueAt work we use typekit to load fonts for our components. They are loaded using the simple Typekit embed code (as seen here: https://helpx.adobe.com/typekit/using/embed-codes.html).
The embed code is two script tags like the following:
<script src="https://use.typekit.net/xxxyyy.js"></script>
<script>try{ Typekit.load(); }catch(e){}</script>
I’m not sure of the best route for adding these script tags in to React Storybook, and wondered if anyone had any ideas!
Would React Storybook be interested in supporting customising the HTML of the iframe to enable the script tags to be added. This would also be useful for loading some external CSS that our components currently depend on.
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Custom HTML for iframe (was 'Using Typekit') #61 - GitHub
At work we use typekit to load fonts for our components. They are loaded using the simple Typekit embed code (as seen here:...
Read more >Using CSS in iframe / Adobe fonts - Stack Overflow
I am trying to use Adobe fonts in Wix. As other posts have noted, you can't simply upload those fonts. Instead, you have...
Read more >Embed codes - Adobe Support
The embed code is how the web fonts are loaded into your website in the browser or into an HTML email in the...
Read more >Using The HTML Tag To Create Inline Frames: Here's How »
A complete step-by-step tutorial on creating frames for your web page. Includes plenty of examples and demonstrates some of the popular techniques for ......
Read more >Story rendering - Storybook
Or you can load custom head-tag JavaScript: --> <script src="https://use.typekit.net/xxxyyy.js"></script> <script>try{ Typekit.load(); } catch(e){ }</script>.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes. This would be something great. We could have a file in the .storybook directory as base.html and use it in the iframe.
Also useful for any other CDN links, e.g. Font Awesome.