import type { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; type RestProps = SvelteHTMLElements["div"]; export interface LoadingProps extends RestProps { /** * Set to `true` to use the small variant * @default false */ small?: boolean; /** * Set to `false` to disable the active state * @default true */ active?: boolean; /** * Set to `false` to disable the overlay * @default true */ withOverlay?: boolean; /** * Specify the label description * @default "Active loading indicator" */ description?: string; /** * Set an id for the label element * @default "ccs-" + Math.random().toString(36) */ id?: string; [key: `data-${string}`]: any; } export default class Loading extends SvelteComponentTyped< LoadingProps, Record, {} > {}