Skip to content

Commit

Permalink
Merge pull request #17415 from flyingSquirrel-dev/patch-1
Browse files Browse the repository at this point in the history
Fix typo in presets docs
  • Loading branch information
shilman committed Feb 4, 2022
2 parents 9b9ea26 + 7e0a8e3 commit 9cfc30d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/addons/writing-presets.md
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 9cfc30d

Please sign in to comment.