1.8.6 • Published 2 years ago

@redefined/name-resolver-react v1.8.6

Weekly downloads
-
License
-
Repository
github
Last release
2 years 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

2 years ago

1.8.1

2 years ago

1.8.0

2 years ago

1.6.0

2 years ago

1.7.0

2 years ago

1.8.6

2 years ago

1.8.5

2 years ago

1.8.4

2 years ago

1.8.3

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.7

2 years ago

1.3.6

2 years ago

1.5.0

2 years ago

1.2.0

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.1.38

2 years ago

1.1.37

2 years ago

1.1.36

2 years ago

1.1.39

2 years ago

1.1.41

2 years ago

1.1.40

2 years ago

1.3.5

2 years ago

1.3.4

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.1.35

2 years ago

1.1.34

2 years ago

1.1.33

2 years ago

1.1.32

2 years ago

1.1.31

2 years ago

1.1.30

2 years ago

1.1.29

2 years ago

1.1.28

2 years ago

1.1.27

2 years ago

1.1.26

2 years ago

1.1.25

2 years ago

1.1.24

2 years ago

1.1.23

2 years ago

1.1.22

2 years ago

1.1.21

2 years ago

1.1.20

2 years ago

1.1.18

2 years ago

1.1.17

2 years ago

1.1.15

2 years ago

1.1.14

2 years ago

1.1.13

2 years ago

1.1.12

2 years ago

1.1.11

2 years ago

1.1.10

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago