From eefb8a8fe92b0f36075f88dc9046fd0656cb190f Mon Sep 17 00:00:00 2001 From: Tanya Brassie Date: Mon, 7 Jun 2021 14:43:18 -0400 Subject: [PATCH 1/2] Link to preview/manage templates Link to preset information for preview body/head from general information about preview body and head. --- docs/configure/story-rendering.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/configure/story-rendering.md b/docs/configure/story-rendering.md index 9290e06c687..98ce697efa3 100644 --- a/docs/configure/story-rendering.md +++ b/docs/configure/story-rendering.md @@ -25,6 +25,9 @@ Storybook will inject these tags into the _preview iframe_ where your components +It's also possible to to programmatically modify the preview head HTML using a preset defined in the `main.js` file. For more information see [Preview/Manager templates](../addons/writing-presets.md#previewmanager-templates). + + ## Adding to <body> Sometimes, you may need to add different tags to the ``. This is useful for adding some custom content roots. @@ -58,3 +61,5 @@ If using relative sizing in your project (like `rem` or `em`), you may update th Storybook will inject these tags into the _preview iframe_ where your components are rendered not the Storybook application UI. + +Similarly to the preview head HTML, preview body HTML can also be updated programmtically using a preset. See [Preview/Manager templates](../addons/writing-presets.md#previewmanager-templates) for more information. From 07313f8731a4232b92251639d836d8162fa21299 Mon Sep 17 00:00:00 2001 From: Tanya Brassie Date: Mon, 7 Jun 2021 14:45:05 -0400 Subject: [PATCH 2/2] Typo Fixing extra to --- docs/configure/story-rendering.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/configure/story-rendering.md b/docs/configure/story-rendering.md index 98ce697efa3..f982f42bf27 100644 --- a/docs/configure/story-rendering.md +++ b/docs/configure/story-rendering.md @@ -25,7 +25,7 @@ Storybook will inject these tags into the _preview iframe_ where your components -It's also possible to to programmatically modify the preview head HTML using a preset defined in the `main.js` file. For more information see [Preview/Manager templates](../addons/writing-presets.md#previewmanager-templates). +It's also possible to programmatically modify the preview head HTML using a preset defined in the `main.js` file. For more information see [Preview/Manager templates](../addons/writing-presets.md#previewmanager-templates). ## Adding to <body>