@theredhead — Frontend Library - v1.0.0
    Preparing search index...

    Interface ToastInstance

    Runtime state of a single toast instance.

    interface ToastInstance {
        actionFn?: () => void;
        actionLabel: string;
        duration: number;
        exiting: boolean;
        id: string;
        message: string;
        position: ToastPosition;
        severity: ToastSeverity;
        title: string;
    }

    Hierarchy

    Index

    Properties

    actionFn?: () => void

    The action callback, if any.

    actionLabel: string

    Optional action button label.

    duration: number

    Auto-dismiss duration in milliseconds. 0 = no auto-dismiss. Defaults to 4000.

    exiting: boolean

    Whether the toast is currently exiting (for animation).

    id: string

    Unique ID for tracking.

    message: string

    The message text to display.

    position: ToastPosition

    Screen position. Defaults to "top-right".

    severity: ToastSeverity

    Severity level. Defaults to "info".

    title: string

    Optional title shown above the message.