yarcl
    Preparing search index...

    Interface ToastOptions

    Options for toast.

    interface ToastOptions {
        action?: { label: string; onClick: () => void };
        color?: Color;
        description?: ReactNode;
        duration?: number;
        title: ReactNode;
        urgent?: boolean;
    }
    Index
    action?: { label: string; onClick: () => void }

    A single action, e.g. Undo. Choosing it dismisses the toast.

    color?: Color

    Accent color, from the colors config.

    config.defaults.color
    
    description?: ReactNode

    Supporting text.

    duration?: number

    Time before it dismisses itself, in ms. Paused while hovered or focused. 0 keeps it until dismissed.

    5000
    
    title: ReactNode

    Main message.

    urgent?: boolean

    Announces immediately (role="alert") instead of politely. Use for errors that need attention.