strothj / react-docgen-typescript-loader

Webpack loader to generate docgen information from Typescript React components.
Other
360 stars 47 forks source link

Filter Components #29

Open samuelcastro opened 5 years ago

samuelcastro commented 5 years ago

In my storybook documentation I have some components that are using others components, the docgen loader is generating prop documentation for all of them, however I'd like to document just one specific, for instance:

Form.storybook.js

<Form>
  <FormItem>
       <Input /> 
       <Input />
   <FormItem>
</Form>

The <Input /> props are being documented again, however I want to filter it out since I have another storybook for it.

Any ideas how can I achieve it?

montoya332 commented 4 years ago

Is there something similar to propFilter or filtering at the component storybook level