UNPKG

melt

Version:

The next generation of Melt UI. Built for Svelte 5.

74 lines (73 loc) 2.46 kB
type ToastData = { title: string; description: string; }; export declare const addToast: (props: import("../Toaster.svelte").AddToastArgs<ToastData>) => { "__#45@#props": { toaster: Toaster<ToastData>; id: string; closeDelay: number; type: "assertive" | "polite"; data: ToastData; }; readonly toaster: Toaster<ToastData>; readonly id: string; data: ToastData; closeDelay: number; type: "assertive" | "polite"; ids: { title: string; description: string; content: string; close: string; }; readonly createdAt: number; "__#45@#frames": import("../../utils/animation-frames.svelte").AnimationFrames | undefined; timeElapsed: number; readonly percentage: number; readonly removeSelf: () => void; readonly cleanup: () => void; readonly pause: () => void; readonly reset: () => void; readonly resume: () => void; readonly content: { readonly "data-melt-toaster-toast-content": ""; readonly id: string; readonly role: "alert"; readonly "aria-labelledby": string; readonly "aria-describedby": string; readonly "aria-live": "assertive" | "polite"; readonly tabindex: -1; readonly onpointerenter: (e: PointerEvent) => void; readonly onpointerleave: (e: PointerEvent) => void; }; readonly title: { id: string; }; readonly description: { id: string; }; readonly close: { readonly "data-melt-toaster-toast-close": ""; readonly onclick: () => void; }; }; import { Toaster } from "../Toaster.svelte"; interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> { new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & { $$bindings?: Bindings; } & Exports; (internal: unknown, props: { $$events?: Events; $$slots?: Slots; }): Exports & { $set?: any; $on?: any; }; z_$$bindings?: Bindings; } declare const ToastTest: $$__sveltets_2_IsomorphicComponent<Record<string, never>, { [evt: string]: CustomEvent<any>; }, {}, {}, string>; type ToastTest = InstanceType<typeof ToastTest>; export default ToastTest;