mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
- use Svelte 3.55.0 since that's the minimum target for SvelteKit and svelte-check - revert to using SvelteComponentTyped for high compatibility. We'll migrate to SvelteComponent after dropping Svelte 3
43 lines
834 B
TypeScript
43 lines
834 B
TypeScript
/// <reference types="svelte" />
|
|
import type { SvelteComponentTyped } from "svelte";
|
|
|
|
export interface LoadingProps
|
|
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> {
|
|
/**
|
|
* 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,
|
|
{},
|
|
{}
|
|
> {}
|