feat(theme-classic): make first tab the default tab (#5647)

* Initial work

* Little doc fix

* Doc fix
This commit is contained in:
Joshua Chen 2021-10-07 23:06:17 +08:00 committed by GitHub
parent 7b64e85dc3
commit d6b4eeb358
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 27 additions and 30 deletions

View file

@ -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() {