feat(aspect-ratio)!: integration with v11

This commit is contained in:
Eric Liu 2024-04-21 11:11:11 -07:00
commit a640bb810b
5 changed files with 48 additions and 7 deletions

View file

@ -1,7 +1,7 @@
import type { SvelteComponentTyped } from "svelte";
import type { SvelteHTMLElements } from "svelte/elements";
type RestProps = SvelteHTMLElements["div"];
type RestProps = SvelteHTMLElements["svelte:element"];
export interface AspectRatioProps extends RestProps {
/**
@ -19,6 +19,12 @@ export interface AspectRatioProps extends RestProps {
| "9x16"
| "1x2";
/**
* Specify the tag name
* @default "div"
*/
tag?: keyof HTMLElementTagNameMap;
[key: `data-${string}`]: any;
}