Currently, I am in the process of developing a documentation website dedicated to a unique design system. My main challenge lies in creating a table that effectively showcases the props for each component. The idea is to have a functional component table that can take any component as input and generate a detailed table displaying the props and their corresponding types. I aim to achieve results similar to storybook args, albeit without utilizing storybook itself.
For instance:
Example Output
Prop | Type |
---|---|
variant | buttonvariant |
onclick | function |
Do you believe this goal is attainable?