redefined : Connect
WebsiteSupport
  • >_ introduction
    • Overview
      • Why redefined?
      • Use Cases
      • FAQ
  • >_ User Starter Guide
    • How does it work ?
      • Interact from any chain
      • Username registration
      • Email registration
      • Manage
      • Send
      • Referral
  • >_ Dev Integration Guide
    • Showcase
    • redefined API
      • Introduction
      • Resolve Usage
      • Reverse Resolve Usage
      • Migration from expiresAt to fetchedAt (optimistic results)
    • redefined SDK
      • Usage
      • Customization
      • Set your own Node URLs
    • redefined Widget
      • Usage
      • Customization
    • Supported networks
    • Supported providers
    • Add your own Custom Resolver
  • >_ Links
    • Website
    • Brand Kit
    • Medium
    • Substack
    • Audit
    • Discord
    • Twitter
    • Telegram
Powered by GitBook
On this page
  • Introduction
  • Installation
  • Usage
  1. >_ Dev Integration Guide
  2. redefined Widget

Usage

We are committed to continuous improvement

Previousredefined WidgetNextCustomization

Last updated 1 year ago

Introduction

Features Include:

  • 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

npm i @redefined/name-resolver-react

or the lib from the registry manually.

Usage

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.

download
NPM