import { SvelteComponentTyped } from "svelte"; import type { SvelteHTMLElements } from "svelte/elements"; type $RestProps = SvelteHTMLElements["div"]; type $Props = { /** * Specify the toggle size. * Also accepts Carbon v11's `"md"` (`"default"`). * @default "default" */ size?: "default" | "sm" | "md"; /** * Specify the label text * @default "" */ labelText?: string; /** * Set to `true` to visually hide the label text * @default false */ hideLabel?: boolean; /** * Set an id for the input element * @default uniqueId() */ id?: string; labelChildren?: (this: void) => void; [key: `data-${string}`]: unknown; }; export type ToggleSkeletonProps = Omit<$RestProps, keyof $Props> & $Props; export default class ToggleSkeleton extends SvelteComponentTyped< ToggleSkeletonProps, { click: WindowEventMap["click"]; mouseenter: WindowEventMap["mouseenter"]; mouseleave: WindowEventMap["mouseleave"]; mouseover: WindowEventMap["mouseover"]; }, { labelChildren: Record } > {}