Skip to content
This repository has been archived by the owner on Jul 26, 2021. It is now read-only.

Props Table Enchancements for Custom propType Declarations #254

Open
dkasper-was-taken opened this issue Apr 21, 2020 · 1 comment
Open

Comments

@dkasper-was-taken
Copy link
Contributor

Feature Request

PropsTable enchancements for custom propType declarations

Description

In many cases custom propType shapes are declared for reuse or read-ability. Sometimes this custom propTypes are either co-located in the component file or in a seperate file for import. Currently only the main propTypes declared for a given component are read and the custom shape doesn't have a clean method of adding to documentation.

Either a method of including the propType reference or file directly into documentation or having the doc gen follow then import path to populate the table would be perfect.

@ Mentions

@mjhenkes

@pranav300
Copy link
Contributor

Investigation:
There was a similar issue logged in react-docgen issue 33. For which even a PR is out react-docgen PR 352.

Should we wait for it to get merged?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants