Skip to content

Using Admonitions inside content of Tabs #8430

Answered by slorber
serrgiofdezz asked this question in General
Discussion options

You must be logged in to vote

I'm not sure it's possible today without using MDX:

:::tip Use tabs in admonitions

<Tabs>
  <TabItem value="apple" label="Apple">
     <Admonition type="info">
        <p>Some information</p>
      </Admonition>
  </TabItem>
  <TabItem value="orange" label="Orange">This is an orange 🍊</TabItem>
  <TabItem value="banana" label="Banana">This is a banana 🍌</TabItem>
</Tabs>

:::

However I think it could become possible after upgrading to MDX 2 (#8288)

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@serrgiofdezz
Comment options

@slorber
Comment options

@serrgiofdezz
Comment options

@slorber
Comment options

@tanberry
Comment options

Answer selected by serrgiofdezz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants