Skip to content

hipstersmoothie/ignite-plugin-prop-types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CircleCI branch Codecov branch npm npm

Ignite-Plugin-Prop-Types

Takes a react component and displays a table with it's prop-types.

Usage

Install the plugin:

yarn add ignite-plugin-prop-types

Add it to your .igniterc or package.json:

{
  "plugins": [
    ["PropTypes", "ignite-plugin-prop-types"],
    ["OtherComponentWithPropTypes", "/path/to/component"]
  ]
}

Use in your documentation:

# OtherComponentWithPropTypes Documentation Page

Description of component.

<PropTypes component='OtherComponentWithPropTypes' />

Result:

Example Output Image

About

Takes a react component and displays a table with it's prop-types.

Resources

License

Stars

Watchers

Forks

Packages

No packages published