Skip to content

Commit

Permalink
Fix typo in Preview/Manager templates
Browse files Browse the repository at this point in the history
I've spotted a typo in the Preview/Manager templates page.
  • Loading branch information
flyingSquirrel-dev committed Feb 4, 2022
1 parent 36f356d commit 7e0a8e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/addons/writing-presets.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ If it doesn't exist yet, create a file `.storybook/main.js`:

### Preview/Manager templates

It's also possible to to programmatically modify the preview head/body HTML using a preset, similar to the way `preview-head.html`/`preview-body.html` can be used to [configure story rendering](../configure/story-rendering.md). The `previewHead` and `previewBody` functions accept a string, which is the existing head/body, and return a modified string.
It's also possible to programmatically modify the preview head/body HTML using a preset, similar to the way `preview-head.html`/`preview-body.html` can be used to [configure story rendering](../configure/story-rendering.md). The `previewHead` and `previewBody` functions accept a string, which is the existing head/body, and return a modified string.

For example, the following snippet adds a style tag to the preview head programatically:

Expand Down

0 comments on commit 7e0a8e3

Please sign in to comment.