Docs

plugin-dialog

Native file & message dialogs.

What is plugin-dialog

Show native open/save file pickers and message dialogs.

Install

js
bash
npm install @tauri-apps/plugin-dialog

Usage

ts
ts
import { open } from '@tauri-apps/plugin-dialog';
const file = await open({ multiple: false, filters: [{ name: 'Text', extensions: ['txt'] }] });

Docs

Official documentation: plugin-dialog.