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

Get react-docgen to work with storybook #716

Open
chrisvanmook opened this issue Jun 30, 2020 · 0 comments
Open

Get react-docgen to work with storybook #716

chrisvanmook opened this issue Jun 30, 2020 · 0 comments
Labels
documentation Anything related to the need of explaining or documenting help wanted Extra attention is needed typescript This issue/PR is related to TypeScript or typing.

Comments

@chrisvanmook
Copy link
Contributor

Make sure we can display a Props table like so:

import { Meta, Story, Preview, Props } from '@storybook/addon-docs/blocks'

import { Button } from '@datapunt/asc-ui'

<Meta title='Button' component={Button} />

## Props

<Props of={Button} />

After several attempts I cannot get this to work, even with customising the webpack config. This is probably because react-docgen-typescript doesn't read from d.ts files

@chrisvanmook chrisvanmook added help wanted Extra attention is needed documentation Anything related to the need of explaining or documenting typescript This issue/PR is related to TypeScript or typing. labels Jun 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Anything related to the need of explaining or documenting help wanted Extra attention is needed typescript This issue/PR is related to TypeScript or typing.
Development

No branches or pull requests

1 participant