mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 18:31:06 +00:00
feat(aspect-ratio)!: integration with v11 (#1955)
This commit is contained in:
parent
0e8909ae59
commit
08036e105c
5 changed files with 48 additions and 7 deletions
8
types/AspectRatio/AspectRatio.svelte.d.ts
vendored
8
types/AspectRatio/AspectRatio.svelte.d.ts
vendored
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue