tauri-apps / tauri-apps/plugins-workspace

[feat] Implement `prompt`

Open
#2,145 4 comments 23 reactions 0 assignees View on GitHub
plugin: dialog plugin: notification status: upstream type: feature request
Dominant language
Rust
Stars
1.8k
Forks
602
Avg merge
4d 14h
Merged PRs (30d)
9

Description

### Describe the problem

Hi! Great framework!
I was trying to create a quick app, and I wanted to use browser's `prompt` function
There's a `@tauri-apps/api/dialog` package which provides you with `confirm`, `alert` analogues, and even file selection. But, unfortunately, there is no `prompt`

### Describe the solution you'd like

In browsers, it looks like this:
Screenshot 2022-07-28 at 01 28 22
Would be cool to see the same thing:
```ts
import { prompt } from '@tauri-apps/api/dialog'

const name = await prompt("Type your name")
```

### Alternatives considered

I was also trying to use `window.prompt`. Console says this function exists, but it does nothing

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.