-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DocsPage: how to change canvas height without mdx? #13765
Comments
I've had a similar issue to yours and I've solved the problem by using the story parameters: export default {
title: 'Components/Dialog',
component: Dialog,
parameters: {
layout: 'centered',
docs: { page: Docs, inlineStories: false, iframeHeight: 600 },
},
} I think that would work also with component or global parameters but I haven't tried it. |
@gdorsi Thank you, really. But where you find its in docs? |
It's documented here https://github.com/storybookjs/storybook/blob/master/addons/docs/common/README.md#L67 @jonniebigodes At some point soon we need to find a way to get the relevant docs out of the |
As from Storybook v7 use
|
@kasparsuvi1 it seems this is causing the source code not to render as expected when you click "Show code". If you remove the inline prop it renders normally again. |
This should probably be in the migration docs |
If you are using inline stories, something like this works to change story height in docs:
|
Hi. How can i change iframe height in docs page for specific story without mdx?
Currently all iframes with stories in docs page has height
100px
The text was updated successfully, but these errors were encountered: