This is more a question. react-docgen support for flow, but I am not sure that react-styleguidist does.
As a workaround, there is a babel plugin to transform flow types as props .
From what I see it should be ok as the result seems following the same format.
It would be nice if you or anyone could check that because I don鈥檛 use Flow anywhere.
We use flow in our project and everything works fine. :)
I confirm this is working like a charm, without any propTypes (only flow annotation) and no plugin to generate those.
You can safely add a note in the README ;)
But does it support Flow type definitions like:
type Tab = "TAB1" | "TAB2";
It seems not. Still looking into it
UPD: false alarm. It was because I'm using react-scripts-cssmodules instead of react-scripts
Most helpful comment
I confirm this is working like a charm, without any propTypes (only flow annotation) and no plugin to generate those.
You can safely add a note in the README ;)