react-showroom-client
react-showroom-client copied to clipboard
Add an ability to generate "Props Reference" section based on PropTypes definition in component
The main idea it's use propTypes definition of components for generationg "Props Reference" section in documentation.
Example: PropTypes definition of component:
...
static propTypes = {
/** Source value */
value: PropTypes.string
};
...
Generated PropTypes section in documentation:
| Name | Type | Description | Is required |
| -----------------|------------- |-------------------------------------- |-------------|
| value | string | Source value | false |
| -----------------|------------- |-------------------------------------- |-------------|
Thanks, @mpritchin-sc. We'll consider your suggestion.