mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 20:51:07 +08:00
Link to preview/manage templates
Link to preset information for preview body/head from general information about preview body and head.
This commit is contained in:
parent
c0c79bc820
commit
eefb8a8fe9
@ -25,6 +25,9 @@ Storybook will inject these tags into the _preview iframe_ where your components
|
||||
|
||||
</div>
|
||||
|
||||
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 `<body>`. 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.
|
||||
|
||||
</div>
|
||||
|
||||
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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user