mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-03 00:39:45 +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.
|
||||
|
||||
```jsx
|
||||
import useBaseUrl from '@docusaurus/useBaseUrl';
|
||||
import ThemedImage from '@theme/ThemedImage';
|
||||
|
||||
<ThemedImage
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue