docs(website): document npm2yarn plugin + use new Tabs API everywhere (#5590)

* Update docs

* Bad grammar

* Add code highlight
This commit is contained in:
Joshua Chen 2021-09-22 18:25:21 +08:00 committed by GitHub
parent b403356dbd
commit 89cb975cc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 80 additions and 82 deletions

View file

@ -13,6 +13,7 @@ import TabItem from '@theme/TabItem';
Docusaurus provides `<Tabs>` components that you can use thanks to [MDX](./markdown-features-react.mdx):
<!-- prettier-ignore-start -->
```jsx
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
@ -27,8 +28,9 @@ import TabItem from '@theme/TabItem';
<TabItem value="banana" label="Banana">
This is a banana 🍌
</TabItem>
</Tabs>;
</Tabs>
```
<!-- prettier-ignore-end -->
```mdx-code-block
<BrowserWindow>