summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Tc001 <55956895+Tc-001@users.noreply.github.com> 2022-08-26 00:39:22 +0200
committerGravatar GitHub <noreply@github.com> 2022-08-25 19:39:22 -0300
commitca24a60b138445af132a7054582c1ed972b5dc49 (patch)
tree27c54d0ad031d047ce5e3244f60c7b44119b16ab
parent7960fb80a15116ceb3fbf048fcdfdc4873a3af56 (diff)
downloadastro-ca24a60b138445af132a7054582c1ed972b5dc49.tar.gz
astro-ca24a60b138445af132a7054582c1ed972b5dc49.tar.zst
astro-ca24a60b138445af132a7054582c1ed972b5dc49.zip
Earlier import snippet for `@astrojs/image` (#4484)
Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
-rw-r--r--packages/integrations/image/README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/integrations/image/README.md b/packages/integrations/image/README.md
index 1e1275e96..28cccec97 100644
--- a/packages/integrations/image/README.md
+++ b/packages/integrations/image/README.md
@@ -82,6 +82,12 @@ Or, alternatively if your project is using the types through a `tsconfig.json`
## Usage
+```astro title="src/pages/index.astro"
+---
+import { Image, Picture } from '@astrojs/image/components';
+---
+```
+
The included `sharp` transformer supports resizing images and encoding them to different image formats. Third-party image services will be able to add support for custom transformations as well (ex: `blur`, `filter`, `rotate`, etc).
### `<Image />`