site-library/packages/imagetools/components/Picture.astro
2025-03-08 21:04:49 +01:00

11 lines
299 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} />