import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; type $RestProps = SvelteHTMLElements["div"]; type $Props = { /** * Set the size: `"sm"` for a compact tile, such as a row in a list of * choices, with less padding and no minimum height. */ size?: "sm" | "md" | undefined; /** * Set to `true` to stretch the tile to fill the height of its container * @default false */ fullHeight?: boolean; /** * Set to `true` to round the tile's corners when it has a `decorator`, * such as an `AILabel`. Carbon reserves rounded tiles for AI content. * @default false */ rounded?: boolean; /** * Set to `true` to remove the tile's padding * @default false */ noPadding?: boolean; /** * Obtain a reference to the top-level HTML element. * @default null */ ref?: null | HTMLDivElement; decorator?: (this: void) => void; children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type TileProps = Omit<$RestProps, keyof $Props> & $Props; export default class Tile extends SvelteComponentTyped< TileProps, { click: WindowEventMap["click"]; mouseenter: WindowEventMap["mouseenter"]; mouseleave: WindowEventMap["mouseleave"]; mouseover: WindowEventMap["mouseover"]; }, { default: Record; decorator: Record; } > {}