Closed benwiley4000 closed 5 years ago
The main thing we need to add right now is prop descriptions. Go through this list:
Stretch goal.. we should also take all the existing documentation that lives in other places (as far as I can tell this is limited to https://github.com/benwiley4000/cassette/blob/next/docs/playlist_in_progress.md and https://github.com/benwiley4000/cassette/blob/next/README.md) and move those to the docs site, so information is more centralized.
/** Comments like this [markdown supported](#sectionInDocs)! */
Button.propTypes = {
/** Button label */
children: PropTypes.node.isRequired,
/** The color for the button */
color: PropTypes.string,
/** The size of the button */
size: PropTypes.oneOf(['small', 'normal', 'large']),
/** Disable button */
disabled: PropTypes.bool,
/** Gets called when the user clicks on the button */
onClick: PropTypes.func,
};
(taken from this example)
Run the styleguide server locally while in development:
npm run docs:serve
Open in browser (should be localhost:6060
)
Maybe not all the examples will be perfect yet but we need to document all the exposed API including prop descriptions, for the beta release.