Closed monica-m-ps closed 11 months ago
What is your intended effect? Show two tab items simultaneously?
I understand Docusaurus doesn't support it. But can you add it as an enhancement please? Because my case is valid here.
Yes I want to add two tabitems but of the same language
value
is not for displaying the language. value
is purely a unique identifier to identify the tab. Underlyingly, Docusaurus is going to record that "whenever I see a tab with the group codeGroup
, I'm going to display the item with value json
, regardless of its label". You can change every occurrence of "json"
to "myJson"
and the effect is exactly the same. What do two identical values mean?
Are you reading our docs section "Multi-language support code blocks"? Would it help if the examples look like this?
<Tabs>
<TabItem value="1" label="JavaScript">
```js
function helloWorld() {
console.log('Hello, world!');
}
You can even forgo the values in this case—they were from a time when `value` was mandatory.
Ok, got it. I can display both of them regardless of their values
. This makes sense. Thanks! Closing this case
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
I have a situation where I need to demonstrate the json code of two types, NoShow and Unscheduled.