How to generate table in storybook .mdx files #22613
-
I have table added in the .md format like below
But storybook is not rendering the table. This is how it is rendered.
Any suggestions for adding a table? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
You could try a more complex one (extra styling etc), something like this: jsx
Markdown:
And then of course change it to your liking. |
Beta Was this translation helpful? Give feedback.
-
You can import Markdown from '@storybook/blocks' and put your table inside
|
Beta Was this translation helpful? Give feedback.
-
Storybook officially recommends enabling the remark-gfm plugin in the configuration file:
|
Beta Was this translation helpful? Give feedback.
You could try a more complex one (extra styling etc), something like this:
jsx
Markdown: