mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 16:11:33 +08:00
Update Custom Body Documentation (#9613)
Update Custom Body Documentation
This commit is contained in:
parent
b899fcad89
commit
fce1f5352f
@ -11,6 +11,16 @@ You can accomplish this by creating a file called `preview-body.html` inside the
|
||||
<div id="custom-root"></div>
|
||||
```
|
||||
|
||||
If using relative sizing in your project (like `rem` or `em`), you may update the base `font-size` by adding a `style` tag to `preview-body.html`:
|
||||
|
||||
```html
|
||||
<style>
|
||||
body {
|
||||
font-size: 15px;
|
||||
}
|
||||
</style>
|
||||
```
|
||||
|
||||
That's it. Storybook will inject these tags to html body.
|
||||
|
||||
> **Important**
|
||||
|
Loading…
x
Reference in New Issue
Block a user