import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; type $RestProps = SvelteHTMLElements["div"]; type $Props = { /** * Set to `true` to use the small variant * @default false */ small?: boolean; /** * Set to `false` to play the stop animation * @default true */ active?: boolean; /** * Specify the description to describe the loading state * @default "loading" */ description?: string; /** * Set by Loading while a delayed spinner waits: CSS reveals it after * `revealAfter` (for example "300ms"). */ revealAfter?: string | undefined; [key: `data-${string}`]: unknown; }; export type LoadingSpinnerProps = Omit<$RestProps, keyof $Props> & $Props; export default class LoadingSpinner extends SvelteComponentTyped< LoadingSpinnerProps, Record, Record > {}