WIP
Parses metadata from system-components for documentation.
Requires components built with system-components >2.2.0
npm i -D system-docs
import Button from '../src/Button'
import parse from 'system-docs'
const metadata = parse(Button)
Returns a metadata
object with the following:
tagName
: the underlying HTML tag nameextensions
: an array of components that the component extends with theis
proppropTypes
: an object of metadata for each propType with the following:prop
: name of the propthemeKey
: key used for value lookups in thetheme
objectstyleType
: (string) one ofdefault
,responsive
,complex
, orpseudo
The object also includes all static properties of the component,
including defaultProp
and any other properties added manually, such as displayName
.