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

# Usage

## Introduction

Features Include:&#x20;

* Simultaneously search for social IDs, domains, emails, usernames, wallet addresses and name services across over five providers with over 20 target extensions.
* Copy the retrieved data (for example, a chain address or a domain name).
* As a developer, you can pass a function to the props and process the data as needed.

## Installation

```bash
npm i @redefined/name-resolver-react
```

or [download](https://www.npmjs.com/package/@redefined/name-resolver-react) the lib from the [NPM](https://www.npmjs.com/package/@redefined/name-resolver-react) registry manually.&#x20;

## Usage

```typescript
import React from 'react';
import { RedefinedDomainResolver } from "@redefined/name-resolver-react";

export default function App() {
  return (
    <div>
        <RedefinedDomainResolver onUpdate={(item) => console.log(item)} />
    </div>
  );
}
```

To handle the user selection, pass a function to `onUpdate` prop of the component.


---

# 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://redefined.gitbook.io/connect/integerate-redefined/redefined-widget/usage.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.
