Skip to content

Instantly share code, notes, and snippets.

@jhonsore
Last active February 8, 2022 12:17
Show Gist options
  • Save jhonsore/a047084a304d65e49add523d8232192c to your computer and use it in GitHub Desktop.
Save jhonsore/a047084a304d65e49add523d8232192c to your computer and use it in GitHub Desktop.
Remove margin and padding from html/body in storybook doc iframe

How to remove margin and padding from html/body in storybook doc iframe

Create a file named preview-body.html in .storybook/ folder

<style>
.sb-show-main.sb-main-padded, body,html {
padding: 0;
margin: 0;
}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment