Shows a message dialog with an Ok button.
Ok
The message to show.
Optional
The dialog's options. If a string, it represents the dialog title.
A promise indicating the success or failure of the operation.
import { message } from '@tauri-apps/plugin-dialog';await message('Tauri is awesome', 'Tauri');await message('File not found', { title: 'Tauri', kind: 'error' }); Copy
import { message } from '@tauri-apps/plugin-dialog';await message('Tauri is awesome', 'Tauri');await message('File not found', { title: 'Tauri', kind: 'error' });
2.0.0
Shows a message dialog with an
Ok
button.