#Add table to storybook documentation

3 messages · Page 1 of 1 (latest)

west laurel
#

Hello, I am creating a typography documentation in Storybook and I wanted to add a table in a mdx document. However I am not being able to. I was doing a little research and I found something like what I want to implement (the following screenshot shows it). The closest I have found on SB documentation is the Typeset tag, but that is not exactly what I wanted. Is there any way I can implement this? Thank you.

#

I have also tried to add a <table> tag, however I saw that this is not considered a very good practice.

raven flame
#

Hi! 👋

I saw that this is not considered a very good practice.

Why not? For tabular data, which that screenshot certainly illustrates, using a table element is 100% correct.

You can then style it however you like and use those styled components inside your MDX.