mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
refactor(types): rewrite type definitions to account for intrinsic attributes
This commit is contained in:
parent
8c30452169
commit
3c04f122b0
158 changed files with 6997 additions and 5383 deletions
38
types/Loading/Loading.d.ts
vendored
Normal file
38
types/Loading/Loading.d.ts
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
/// <reference types="svelte" />
|
||||
|
||||
export default class Loading {
|
||||
$$prop_def: 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
|
||||
*/
|
||||
id?: string;
|
||||
};
|
||||
|
||||
$$slot_def: {};
|
||||
|
||||
$on(eventname: string, cb: (event: Event) => void): () => void;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue