# AskAI.Input



# Overview

Text input for sending prompts, including optional speech input and submit button. It binds to [useAskAI](/docs/api-reference/client/use-ask-ai).

## Usage

```tsx
import { AskAI } from 'peam/client';

export default function Page() {
  return (
    <AskAI>
      <AskAI.Dialog>
        <AskAI.Input />
      </AskAI.Dialog>
    </AskAI>
  );
}
```

## Notes

* Binds to the AskAI context `input` and `handleSubmit`.
* Disables submit when the input is empty and not streaming.


## Sitemap
[Overview of all docs pages](/sitemap.md)
