mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-29 17:07:08 +02:00
feat(theme-classic): make first tab the default tab (#5647)
* Initial work * Little doc fix * Doc fix
This commit is contained in:
parent
7b64e85dc3
commit
d6b4eeb358
7 changed files with 27 additions and 30 deletions
|
@ -375,7 +375,7 @@ import Tabs from '@theme/Tabs';
|
|||
import TabItem from '@theme/TabItem';
|
||||
|
||||
<Tabs>
|
||||
<TabItem value="js" label="JavaScript" default>
|
||||
<TabItem value="js" label="JavaScript">
|
||||
|
||||
```js
|
||||
function helloWorld() {
|
||||
|
@ -410,7 +410,7 @@ And you will get the following:
|
|||
|
||||
````mdx-code-block
|
||||
<Tabs>
|
||||
<TabItem value="js" label="JavaScript" default>
|
||||
<TabItem value="js" label="JavaScript">
|
||||
|
||||
```js
|
||||
function helloWorld() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue