site-library/packages/imagetools/components/Img.astro
2025-03-12 18:53:16 +01:00

11 lines
281 B
Plaintext

---
import renderImg from "../api/renderImg.js";
import type { ImgConfigOptions } from "../types.d";
declare interface Props extends ImgConfigOptions {}
const { link, style, img } = await renderImg(Astro.props as Props);
---
<Fragment set:html={link + style + img} />