mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-06 10:20:09 +02:00
docs: fix import module name of theme/Admonition (#6164)
This commit is contained in:
parent
8791fd65af
commit
5dcfa8fa23
2 changed files with 8 additions and 8 deletions
|
@ -146,10 +146,10 @@ import TabItem from '@theme/TabItem';
|
||||||
|
|
||||||
## Usage in JSX
|
## Usage in JSX
|
||||||
|
|
||||||
Outside of Markdown, you can use the `@theme/Admonitions` component to get the same output.
|
Outside of Markdown, you can use the `@theme/Admonition` component to get the same output.
|
||||||
|
|
||||||
```jsx title="MyReactPage.jsx"
|
```jsx title="MyReactPage.jsx"
|
||||||
import Admonition from '@theme/Admonitions';
|
import Admonition from '@theme/Admonition';
|
||||||
|
|
||||||
export default function MyReactPage() {
|
export default function MyReactPage() {
|
||||||
return (
|
return (
|
||||||
|
|
|
@ -146,10 +146,10 @@ import TabItem from '@theme/TabItem';
|
||||||
|
|
||||||
## Usage in JSX
|
## Usage in JSX
|
||||||
|
|
||||||
Outside of Markdown, you can use the `@theme/Admonitions` component to get the same output.
|
Outside of Markdown, you can use the `@theme/Admonition` component to get the same output.
|
||||||
|
|
||||||
```jsx title="MyReactPage.jsx"
|
```jsx title="MyReactPage.jsx"
|
||||||
import Admonition from '@theme/Admonitions';
|
import Admonition from '@theme/Admonition';
|
||||||
|
|
||||||
export default function MyReactPage() {
|
export default function MyReactPage() {
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue