| Crates.io | tauri-plugin-toast |
| lib.rs | tauri-plugin-toast |
| version | 0.0.2 |
| created_at | 2025-08-27 06:17:43.182628+00 |
| updated_at | 2025-08-27 07:23:56.229457+00 |
| description | A Tauri plugin for showing toast notifications on Android |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1812221 |
| size | 149,178 |
This plugin provides a simple way to show toast notifications in your Tauri application. This is a mobile-only plugin that supports Android platform.
import { showToast } from '@bling-yshs/tauri-plugin-toast'
// Show a short toast message
await showToast('Hello, world!')
// Show a long toast message
await showToast('This is a long message that will be displayed for a longer duration', 'long')
showToast(message: string, duration: 'short' | 'long' = 'short'): Promise<boolean>Shows a toast notification with the specified message and duration.
message: The message to display in the toastduration: The duration for which the toast should be displayed ('short' or 'long')Returns a promise that resolves to true if the toast was successfully displayed, false otherwise.