carbon-components-svelte/types/SkeletonText/SkeletonText.svelte.d.ts
metonym ea38cd2568
feat(types): support sveltekit:prefetch, sveltekit:noscroll attributes in type definitions (#1234)
* chore(deps-dev): upgrade sveld to 0.14.0

* Run "yarn build:docs"
2022-04-09 14:13:56 -07:00

40 lines
868 B
TypeScript

/// <reference types="svelte" />
import type { SvelteComponentTyped } from "svelte";
export interface SkeletonTextProps
extends svelte.JSX.HTMLAttributes<HTMLElementTagNameMap["div"]> {
/**
* Specify the number of lines to render
* @default 3
*/
lines?: number;
/**
* Set to `true` to use the heading size variant
* @default false
*/
heading?: boolean;
/**
* Set to `true` to use the paragraph size variant
* @default false
*/
paragraph?: boolean;
/**
* Specify the width of the text (% or px)
* @default "100%"
*/
width?: string;
}
export default class SkeletonText extends SvelteComponentTyped<
SkeletonTextProps,
{
click: WindowEventMap["click"];
mouseover: WindowEventMap["mouseover"];
mouseenter: WindowEventMap["mouseenter"];
mouseleave: WindowEventMap["mouseleave"];
},
{}
> {}