summaryrefslogtreecommitdiff
path: root/packages/integrations/image/README.md
diff options
context:
space:
mode:
authorGravatar Tony Sullivan <tony.f.sullivan@outlook.com> 2022-07-20 00:33:11 +0000
committerGravatar GitHub <noreply@github.com> 2022-07-20 00:33:11 +0000
commiteaf187f2c40493abec28113c742ef392c812d0e2 (patch)
tree74e90b6bdb59e251aa397eb8388c52317cbafc9d /packages/integrations/image/README.md
parentb043fb1980b68f0a59d252c02853ef34350a2148 (diff)
downloadastro-@astrojs/image@0.0.0-rc-20220720164940.tar.gz
astro-@astrojs/image@0.0.0-rc-20220720164940.tar.zst
astro-@astrojs/image@0.0.0-rc-20220720164940.zip
Fixing TypeScript type definitions for image components (#3980)astro@0.0.0-rc-20220720044556@astrojs/image@0.0.0-rc-20220720164940
* moving back to importing from components directory * exporting components with a .ts file instead of .js * chore: changeset
Diffstat (limited to 'packages/integrations/image/README.md')
-rw-r--r--packages/integrations/image/README.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/integrations/image/README.md b/packages/integrations/image/README.md
index fef238891..35136f568 100644
--- a/packages/integrations/image/README.md
+++ b/packages/integrations/image/README.md
@@ -104,7 +104,7 @@ export default {
```html
---
-import { Image } from '@astrojs/image';
+import { Image } from '@astrojs/image/components';
import heroImage from '../assets/hero.png';
---
@@ -132,7 +132,7 @@ import heroImage from '../assets/hero.png';
```html
---
-import { Image } from '@astrojs/image';
+import { Image } from '@astrojs/image/components';
const imageUrl = 'https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png';
---
@@ -156,7 +156,7 @@ const imageUrl = 'https://www.google.com/images/branding/googlelogo/2x/googlelog
```html
---
setup: |
- import { Image } from '@astrojs/image'
+ import { Image } from '@astrojs/image/components'
import hero from '../../assets/blog/introducing-astro.jpg'
title: Hello world!
publishDate: 12 Sep 2021
@@ -181,7 +181,7 @@ description: Just a Hello World Post!
```html
---
-import { Picture } from '@astrojs/image';
+import { Picture } from '@astrojs/image/components';
import hero from '../assets/hero.png';
const imageUrl = 'https://www.google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png';