• Imperative toast API backed by a lazily-created document-level region (or a [data-hl-toast-region] you render yourself, e.g. via <ToastRegion>). Safe to call from anywhere, no setup required:

    import { useToast } from '@hydrateless/svelte';

    const toast = useToast();
    toast.show('Saved', { variant: 'success' });

    Parameters

    Returns ToastApi