Skip to content
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

How to show viewport on the docs page? #9218

Open
zaleGZL opened this issue Dec 22, 2019 · 2 comments
Open

How to show viewport on the docs page? #9218

zaleGZL opened this issue Dec 22, 2019 · 2 comments

Comments

@zaleGZL
Copy link

zaleGZL commented Dec 22, 2019

Describe the bug
How to show viewport on the docs page? The canvas page has viewport options,But the documentation page is not。Is this a bug or does it require additional configuration?

Screenshots
The canvas page has viewport options.
image

But the documentation page is not。
image

Code snippets

import { configure, addParameters } from '@storybook/react'
import { DocsPage, DocsContainer } from '@storybook/addon-docs/blocks'
import { INITIAL_VIEWPORTS } from '@storybook/addon-viewport'
import '../src/index.less'

addParameters({
    viewport: {
        viewports: INITIAL_VIEWPORTS
    },
    docs: {
        container: DocsContainer,
        page: DocsPage
    }
})

@shilman
Copy link
Member

shilman commented Dec 22, 2019

See #6700 for the general issue

@shilman shilman added this to the 6.4 improvements milestone Jul 6, 2021
@shilman shilman removed this from the 6.4 improvements milestone May 20, 2022
@ndelangen
Copy link
Member

This is currently not yet possible, maybe after 7.0.

We're open to ideas on how to implement this.

@shilman shilman removed the todo label Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants