audio
Audio controls
- Sound On
- Sound Off
- Volume adjust
- Cooldown
toast.success("New message", { audio: { enabled: true } });
Click the button below to trigger a toast:
toast.success("New message", { audio: { enabled: false } });
Click the button below to trigger a toast:
toast.success("New message", { audio: { volume: 0.9, // max 1 } });
Click the button below to trigger a toast:
toast.success("New message", { audio: { cooldown: 800, // ms } });
Click the button below to trigger a toast:
Default sounds
- On Success
- On Error
- On Info
- On Warning
toast.success("New message", { audio: { audioFile: sounds.success } });
Click the button below to trigger a toast:
toast.error("New message", { audio: { audioFile: sounds.error }});
Click the button below to trigger a toast:
toast.info("New message", { audio: { audioFile: sounds.info } });
Click the button below to trigger a toast:
toast.warning("New message", { audio: { audioFile: sounds.warning }});
Click the button below to trigger a toast:
Custom sound
toast.success("New message", { audio: { audioFile: "YOUR_AUDIO_URL" }});