--- import type { ComponentProps } from "astro/types"; import { Image as AstroImage } from "astro:assets"; import { tv } from "tailwind-variants"; export const image = tv({ base: "starwind-image h-auto w-full" }); type Props = Partial> & { inferSize?: boolean }; const { class: className, src, alt = "", inferSize = true, ...rest } = Astro.props; --- { src && ( ) }