import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; type $RestProps = SvelteHTMLElements["div"]; type $Props = { /** * Specify the aspect ratio, as in `AspectRatio`. * Only applies when the card is not `horizontal`, where the media * fills the card's height instead. * @default "2x1" */ ratio?: "2x1" | "2x3" | "16x9" | "4x3" | "1x1" | "3x4" | "3x2" | "9x16" | "1x2" | `${number}x${number}`; /** * Specify the width of the media, as any CSS width. * Only applies when the card is `horizontal`. * @default "33.33%" */ mediaWidth?: string; children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type CardMediaProps = Omit<$RestProps, keyof $Props> & $Props; export default class CardMedia extends SvelteComponentTyped< CardMediaProps, Record, { default: Record } > {}