compote-ui
Version:
An opinionated UI component library for Svelte, built on top of [Ark UI](https://ark-ui.com) with additional components and features not available in the core Ark UI library.
11 lines (10 loc) • 727 B
TypeScript
import type { CreateToasterReturn } from '@ark-ui/svelte/toast';
export type ToastOptions = Parameters<CreateToasterReturn['create']>[0];
export type ToastType = NonNullable<ToastOptions['type']>;
export declare const toast: import("@zag-js/toast").Store<any> & {
info: (title: string | ToastOptions, options?: Omit<ToastOptions, "type">) => string;
success: (title: string | ToastOptions, options?: Omit<ToastOptions, "type">) => string;
warning: (title: string | ToastOptions, options?: Omit<ToastOptions, "type">) => string;
error: (title: string | ToastOptions, options?: Omit<ToastOptions, "type">) => string;
loading: (title: string | ToastOptions, options?: Omit<ToastOptions, "type">) => string;
};