@antadesign/anta
    Preparing search index...

    Interface ToastOptionsUnreviewed

    Per-toast options for Toaster.add.

    interface ToastOptions {
        id?: string;
        placement?:
            | "top-left"
            | "top-center"
            | "top-right"
            | "bottom-left"
            | "bottom-center"
            | "bottom-right";
        duration?: number;
        politeness?: "polite"
        | "assertive";
    }
    Index
    id?: string

    Stable id. Reuse it to update a live toast in place (upsert) or to target it with dismiss / update. Auto-generated when omitted.

    placement?:
        | "top-left"
        | "top-center"
        | "top-right"
        | "bottom-left"
        | "bottom-center"
        | "bottom-right"

    Which corner / edge to show it in.

    'bottom-right'
    
    duration?: number

    Auto-dismiss delay in ms. Empty or non-positive values fall back to the default; pass Infinity to keep the toast until it's dismissed (sticky).

    5000
    
    politeness?: "polite" | "assertive"

    Announce this toast to assistive tech via aria-live on the toast. Opt-in per toast — omit for no announcement (the content may carry its own live semantics, e.g. a Banner's role="status"). 'assertive' interrupts.