Skip to content

Commit

Permalink
[v2] fix dialog option name (#2134)
Browse files Browse the repository at this point in the history
  • Loading branch information
ferreira-tb authored May 10, 2024
1 parent c762744 commit 20a95da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/content/docs/features/dialog.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ import { ask } from '@tauri-apps/plugin-dialog';
// Create a Yes/No dialog
const answer = await ask('This action cannot be reverted. Are you sure?', {
title: 'Tauri',
type: 'warning',
kind: 'warning',
});

console.log(answer);
Expand All @@ -116,7 +116,7 @@ import { confirm } from '@tauri-apps/plugin-dialog';
// Creates a confirmation Ok/Cancel dialog
const confirmation = await confirm(
'This action cannot be reverted. Are you sure?',
{ title: 'Tauri', type: 'warning' }
{ title: 'Tauri', kind: 'warning' }
);

console.log(confirmation);
Expand All @@ -133,7 +133,7 @@ Shows a message dialog with an `Ok` button. Keep in mind that if the user closes
import { message } from '@tauri-apps/plugin-dialog';

// Shows message
await message('File not found', { title: 'Tauri', type: 'error' });
await message('File not found', { title: 'Tauri', kind: 'error' });
```

{/* OPEN */}
Expand Down

0 comments on commit 20a95da

Please sign in to comment.