Create playground for Astro's Image component
This commit is contained in:
parent
80df0abae1
commit
075f0b4c60
1 changed files with 7 additions and 0 deletions
7
src/pages/playground/image.astro
Normal file
7
src/pages/playground/image.astro
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
---
|
||||||
|
import { Image } from '@astrojs/image/components';
|
||||||
|
---
|
||||||
|
|
||||||
|
<div class="p-5">
|
||||||
|
<Image src={import('@/assets/my-image.jpeg')} alt="My image" width={120} height={120} format="webp" />
|
||||||
|
</div>
|
||||||
Loading…
Reference in a new issue