revelrylabs / harmonium

An opinionated React component framework for teams that move fast.
https://harmonium.revelry.co
MIT License
35 stars 47 forks source link

Where can I find the documentation of props? #145

Closed emil-alexandrescu closed 5 years ago

emil-alexandrescu commented 6 years ago

Thanks for providing nice framework. I was going to give it a shot on a testing project, but I couldn't find any documentation of props for certain components.

prehnRA commented 6 years ago

Right now the only source for that are the examples, though they aren't guaranteed to be exhaustive of all the options.

We've looked at a variety of ways to do this, but unfortunately React doesn't give an easy way to introspect these automatically (to build documentation from prop types). Options we're considering:

We'd be open to any opinions on which path to pursue, and would welcome any prototype PRs trying out one of these approaches.

jwietelmann commented 5 years ago

@emil-alexandrescu Just an update: Work is underway to add tables of props to every documentation page. If you're interested, the tickets are here: https://github.com/revelrylabs/harmonium/issues?q=is%3Aissue+is%3Aopen+label%3Adocs

I think at the moment we might just be manually adding these rather than attempting to generate them. Anyway, given that we have a lot of individual tickets tracking this issue, I'm going to close this general one in favor of those.