> For the complete documentation index, see [llms.txt](https://ebay.gitbook.io/mindpatterns/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ebay.gitbook.io/mindpatterns/input/input-dialog.md).

# Input Dialog

![An input dialog that prompts user to enter an auction bid amount](/files/-LXQcF24YbtiKUpBhVBM)

### Introduction

The input dialog pattern is a specific type of [lightbox dialog](/mindpatterns/disclosure/lightbox-dialog.md) that prompts a user for their input.&#x20;

The behaviour is similar to JavaScript's [window.prompt()](https://developer.mozilla.org/en-US/docs/Web/API/Window/prompt) method.

### Working Examples

You can take a look at the input dialog pattern in action on our [examples site](https://ebay.github.io/mindpatterns/disclosure/input-dialog).

### Best Practices

The section is not yet available.

### Interaction Design

The input dialog inherits all base behaviour and interaction design from the modal l[ightbox dialog](/mindpatterns/disclosure/lightbox-dialog.md) pattern. It's unique characteristic is that the input field should receive keyboard focus (e.g. "Your Max Bid" in the screenshot above).

### Developer Guide

The section is not yet available.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ebay.gitbook.io/mindpatterns/input/input-dialog.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
