tauri-apps / tauri-apps/plugins-workspace
[feat] Implement `prompt`
- 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:
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
Assessment
This issue has not been assessed yet.