mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-02 08:19:07 +02:00
docs(website): document npm2yarn plugin + use new Tabs API everywhere (#5590)
* Update docs * Bad grammar * Add code highlight
This commit is contained in:
parent
b403356dbd
commit
89cb975cc4
6 changed files with 80 additions and 82 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue