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
  1. >_ Dev Integration Guide
  2. redefined Widget

Customization

Component props that you may want to specify

PreviousUsageNextSupported networks

Last updated 1 year ago

Prop name
Type
Example
Description

type

"resolve" | "reverse" | "combined"

"combined" (default)

defines the mode of operation of the resolver

autoFocus

boolean

true

focus the control when it mounts

theme

"dark" | "light"

"dark"

apply dark or light theme to the component

width

string

100px or 100%

set component width

disabled

boolean

false

disable the control

onUpdate

(res: TypedResult | null) => void

(result) = > console.log(result)

{ domain: "nick.eth", from: "ens", type: "reverse" }

subscribe to update event.

hiddenAddressGap

{ leadingCharLimit: number; trailingCharLimit: number; }

{leadingCharLimit: 4, trailingCharLimit: 6}

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

object

change the resolver options for such as specify resolver services or set nodes

{
  redefined: {
      node: "https://evm.node.io/123abc",
  },
  unstoppable: {
      mainnetNode: "https://evm2.node.io/123abc",
      polygonMainnetNode: "https://evm-polygon.node.io/123abc",
  },
  ens: {
    node: "https://evm.node.io/123abc",
  },
}
Resolver engine
Account and ReverseAccount types are here.