Create playground for Astro's Image component

This commit is contained in:
Konrad Szwarc 2022-08-30 00:36:35 +02:00
parent 80df0abae1
commit 075f0b4c60

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