mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-06 02:08:55 +02:00
docs: make ThemedImage
example work out of the box (#10085)
This commit is contained in:
parent
e20b3294df
commit
f1cb4ed560
1 changed files with 1 additions and 0 deletions
|
@ -161,6 +161,7 @@ import DocusaurusSvg from './docusaurus.svg';
|
||||||
Docusaurus supports themed images: the `ThemedImage` component (included in the themes) allows you to switch the image source based on the current theme.
|
Docusaurus supports themed images: the `ThemedImage` component (included in the themes) allows you to switch the image source based on the current theme.
|
||||||
|
|
||||||
```jsx
|
```jsx
|
||||||
|
import useBaseUrl from '@docusaurus/useBaseUrl';
|
||||||
import ThemedImage from '@theme/ThemedImage';
|
import ThemedImage from '@theme/ThemedImage';
|
||||||
|
|
||||||
<ThemedImage
|
<ThemedImage
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue