This repository was archived by the owner on Nov 20, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
Styled Components #20
Comments
Hello, I've merged in a change from #21, thanks @rkostrzewski, which adds support for providing a function to filter props. We're hoping to see styleguidist/react-docgen-typescript#111 merged in so that we gain access to the component's filename and interface in the filtering function. |
What is the best way to filter out inherited HTML element props using the propFilter loader option? |
@teddybradford I've used following configuration entry to achieve this:
Do note that this won't work if you're using sth like webpack's thread-loader for multi threading as the options are converted to JSON to send to another node process |
Thanks, @rkostrzewski! |
@rkostrzewski I used your solution but still, 'ref' prop is coming. Could you please help for the same.
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hey, i think this is more a question and am happy to close this issue if so but...
i am using React-Emotion and Typescript and am using Storybook to document props.
Example Button
The prop table in Storybook details my x2 props from the interface but also all the standard
html/css
propTypes including about 50aria
ones.Is there a setting other than listing every single one to exclude i can use so i only see the props from my interface?
Thanks in advance!
The text was updated successfully, but these errors were encountered: