# Capture email button

The **ButtonCaptureEmail** component is designed to capture user emails, making it ideal for waitlists, newsletter signups, or early access registrations.

<figure><img src="/files/0BJgA14YBOOu1yyU9kui" alt="" width="375"><figcaption></figcaption></figure>

* **Email input field** – Collects user email addresses securely.
* **API integration** – Sends email submissions to `/capture-email` API route.
* **Loading & disabled states** – Prevents duplicate submissions and enhances user experience. Only stores email address once.
* **Success feedback** – Displays a confirmation message using `react-hot-toast` upon successful submission.

####


---

# Agent Instructions: 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://accelerator.gitbook.io/docs/features/capture-email-button.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.
