1.8.6 • Published 8 months ago

@redefined/name-resolver-react v1.8.6

Weekly downloads
-
License
-
Repository
github
Last release
8 months ago

Redefined-Name-Resolver-React

Simple input component that will help resolve domains on services such as Redefined, ENS and Unstoppable.

See redefined-name-resolver-react for live demos.

redefined-name-resolver-react is founded by E2xLabs. We will be glad to see the integration of our library in other services.

Features include:

  • The ability to find addresses in 3 services at once
  • Copy the address of the found domain
  • And if you are a developer, then just pass a function to the props and do whatever you want with the address

Installation and usage

The easiest way to use react-select is to install it from npm and build it into your app with Webpack.

npm i redefined-name-resolver-react

Then use it in your app:

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

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

Props

Common props you may want to specify include:

  • autoFocus: boolean - focus the control when it mounts
  • theme: "dark" | "light" - apply a dark or light theme to the component
  • width: string - set component width
  • disabled: boolean - disable the control
  • onUpdate: (res: Account | null) => void - subscribe to select event
  • hiddenAddressGap: { leadingCharLimit: number; trailingCharLimit: number; } - specify the size of the address hidden. For example, for an address with the following parameters hiddenAddressGap={{leadingCharLimit: 4, trailingCharLimit: 6}} you can see following result: 0x6B ... D55d04
  • resolverOptions - change the resolver options for Resolver engine such as specify resolver services or set nodes

Events

As a result event, you get an object of the following type type Account = { address: string, network: string, from: string }

License

Apache License 2.0

1.8.2

8 months ago

1.8.1

8 months ago

1.8.0

8 months ago

1.6.0

9 months ago

1.7.0

8 months ago

1.8.6

8 months ago

1.8.5

8 months ago

1.8.4

8 months ago

1.8.3

8 months ago

1.4.1

12 months ago

1.4.0

1 year ago

1.3.7

1 year ago

1.3.6

1 year ago

1.5.0

11 months ago

1.2.0

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.1.38

1 year ago

1.1.37

1 year ago

1.1.36

1 year ago

1.1.39

1 year ago

1.1.41

1 year ago

1.1.40

1 year ago

1.3.5

1 year ago

1.3.4

1 year ago

1.3.3

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.1.35

1 year ago

1.1.34

1 year ago

1.1.33

1 year ago

1.1.32

1 year ago

1.1.31

1 year ago

1.1.30

1 year ago

1.1.29

1 year ago

1.1.28

1 year ago

1.1.27

1 year ago

1.1.26

1 year ago

1.1.25

1 year ago

1.1.24

1 year ago

1.1.23

1 year ago

1.1.22

1 year ago

1.1.21

1 year ago

1.1.20

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago