import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; type $RestProps = SvelteHTMLElements["div"]; type $Props = { /** * Specify the title. * Alternatively, use the named slot "titleChildren". * @default "" */ titleText?: string; /** * Specify one or two short lines under the title. * Alternatively, use the named slot "subtitleChildren", such as for a link. * @default "" */ subtitleText?: string; /** * Set the size: `"lg"` for a page or panel, `"sm"` for a card, drawer or * table body. * @default "lg" */ size?: "sm" | "lg"; /** * Specify the heading level of the title, to fit the page outline. * Inside a `Section`, defaults to one level below the section's heading; * otherwise to 3. */ headingLevel?: 1 | 2 | 3 | 4 | 5 | 6 | undefined; /** Decorative art above the title, hidden from assistive technology. Use a pictogram; it draws at 64px, or 48px at `size="sm"`. An icon draws at its own size, so give it `size={32}`. */ illustration?: (this: void) => void; subtitleChildren?: (this: void) => void; titleChildren?: (this: void) => void; /** Actions, such as buttons, under the subtitle. */ children?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type EmptyStateProps = Omit<$RestProps, keyof $Props> & $Props; export default class EmptyState extends SvelteComponentTyped< EmptyStateProps, Record, { /** Actions, such as buttons, under the subtitle. */ default: Record; /** Decorative art above the title, hidden from assistive technology. Use a pictogram; it draws at 64px, or 48px at `size="sm"`. An icon draws at its own size, so give it `size={32}`. */ illustration: Record; subtitleChildren: Record; titleChildren: Record; } > {}