UI Headless Runtime API - v1.0.0
    Preparing search index...

    Interface ToastOptions

    Toast queue ownership and capacity options.

    interface ToastOptions {
        getToasts?: () => readonly ToastRecord[];
        maxVisible?: number;
        onToastsChange?: (
            toasts: readonly ToastRecord[],
            details: ChangeDetails<ToastChangeReason>,
        ) => void;
        subscribeToasts?: (listener: () => void) => Unsubscribe;
    }
    Index

    Properties

    getToasts?: () => readonly ToastRecord[]

    Consumer-owned record reader.

    maxVisible?: number

    Maximum concurrently visible records.

    3

    onToastsChange?: (
        toasts: readonly ToastRecord[],
        details: ChangeDetails<ToastChangeReason>,
    ) => void

    Receives queue mutation requests in controlled mode.

    subscribeToasts?: (listener: () => void) => Unsubscribe

    Subscribes to consumer-owned queue changes.