# Connect Button

This is the main button to connect your dapp with your wallet. This component is responsible for rendering **Connect button** when not connected and rendering the **connected address, its balance** (on that chain) and **Disconnect Button** if connected.

### Usage

```tsx
"use client";
import { ConnectButton } from "@nazeeh2000/comp-kit";

export default function Home() {
  return (
    <>
      <ConnectButton />
    </>
  );
}

```

{% hint style="info" %}
Note: Make sure your app is wrapped with the necessary provider [`KitProvider`](https://nazeehs-org.gitbook.io/comp-kit/introduction/getting-started#configuration).
{% endhint %}


---

# 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://nazeehs-org.gitbook.io/comp-kit/components/readymade-components/connect-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.
