Skip to content

Markdown tables in <TabItem></TabItem> #4761

Answered by slorber
ErikQQY asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

You can interleave markdown inside MDX JSX elements (<TabItem>) by using line breaks:

<Tabs
  defaultValue="apple"
  values={[
    {label: 'Apple', value: 'apple'},
    {label: 'Orange', value: 'orange'},
    {label: 'Banana', value: 'banana'},
  ]}>
  <TabItem value="apple">

  | foo | bar |
  | :-- | :-: |
  | baz | qux |

  </TabItem>
  <TabItem value="orange">This is an orange 🍊</TabItem>
  <TabItem value="banana">This is a banana 🍌</TabItem>
</Tabs>

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@slorber
Comment options

slorber May 11, 2021
Collaborator

@ErikQQY
Comment options

Answer selected by slorber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants