docs: make ThemedImage example work out of the box (#10085)

This commit is contained in:
Balthasar Hofer 2024-04-29 19:35:52 +02:00 committed by GitHub
parent e20b3294df
commit f1cb4ed560
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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