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

11 lines
309 B
Plaintext

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