Using Admonitions inside content of Tabs #8430
Answered
by
slorber
serrgiofdezz
asked this question in
General
-
Hello, I'm not sure if this question has already been answered, but I have this doubt: Can we use admonitions inside the content of a tab? On the docusaurus documentation I found Admonitions with MDX, but what I want is to use a admonition inside the content of the tab and not the other way around. I tried:
Is it possible? |
Beta Was this translation helpful? Give feedback.
Answered by
slorber
Dec 14, 2022
Replies: 1 comment 6 replies
-
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) |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
serrgiofdezz
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm not sure it's possible today without using MDX:
However I think it could become possible after upgrading to MDX 2 (#8288)