I am building a documentation website for a custom design system and I am trying to create a table that displays the props of each component. The functional component table takes any component and outputs a table with the props, types..etc. I am struggling to find a way to do that for the props and types. My goal is to have something close to storybook args, but without using storybook.
example :
Output
Prop | type |
---|---|
variant | buttonvariant |
onclick | function |
Is that possible?