first commit

This commit is contained in:
Raul Lugo
2026-01-15 15:05:42 +01:00
parent f6d3c9b108
commit 385175b49c
14 changed files with 1071 additions and 21 deletions

View File

@@ -0,0 +1,24 @@
---
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<ComponentProps<typeof AstroImage>> & { inferSize?: boolean };
const { class: className, src, alt = "", inferSize = true, ...rest } = Astro.props;
---
{
src && (
<AstroImage
class={image({ class: className })}
src={src}
alt={alt}
inferSize={inferSize}
data-slot="image"
{...(rest as any)}
/>
)
}