import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; type $RestProps = SvelteHTMLElements["div"]; type $Props = { /** * 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; /** * Set to `true` to remove the bottom margin, such as for a placeholder * in a flex or grid row that sets its own spacing. In a paragraph, only * the last line loses its margin, so the lines keep their gaps. * @default false */ noMargin?: boolean; /** * Set to `true` to use the AI variant, a blue shimmer for content that * AI is generating * @default false */ ai?: boolean; [key: `data-${string}`]: unknown; }; export type SkeletonTextProps = Omit<$RestProps, keyof $Props> & $Props; export default class SkeletonText extends SvelteComponentTyped< SkeletonTextProps, { click: WindowEventMap["click"]; mouseenter: WindowEventMap["mouseenter"]; mouseleave: WindowEventMap["mouseleave"]; mouseover: WindowEventMap["mouseover"]; }, Record > {}