mirror of
https://github.com/facebook/docusaurus.git
synced 2025-12-26 01:33:02 +00:00
docs: make `ThemedImage` example work out of the box (#10085)
This commit is contained in:
parent
e20b3294df
commit
f1cb4ed560
|
|
@ -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.
|
||||
|
||||
```jsx
|
||||
import useBaseUrl from '@docusaurus/useBaseUrl';
|
||||
import ThemedImage from '@theme/ThemedImage';
|
||||
|
||||
<ThemedImage
|
||||
|
|
|
|||
Loading…
Reference in New Issue