feat(aspect-ratio)!: integration with v11 (#1955)

This commit is contained in:
Eric Liu 2024-04-21 11:14:52 -07:00 committed by GitHub
commit 08036e105c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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;
}