Skip to main content
Version: 2.0 (Latest)

Audio Support

D9 Toast supports optional toast sounds with cooldown control.

Audio Options

audio?: {
enabled?: boolean;
volume?: number; // 0 – 1
audioFile?: string;
cooldown?: number; // ms
};

Example

toast.success("Message sent", {
audio: {
enabled: true,
volume: 0.8,
audioFile: toast.sounds.success,
},
});

✔ Per-toast control ✔ Cooldown prevents spam ✔ Custom sound support