Profile Widget

Display a user's profile card with identity and social information.

Profile Widget

Quick Start


Configuration Options

Option
Type
Default
Description

apiKey

string

required

Your DotPassport API key

address

string

required

Polkadot address to display

type

'profile'

required

Widget type

theme

'light' | 'dark' | 'auto'

'light'

Color theme

showIdentities

boolean

true

Display chain identities

showSocials

boolean

true

Display social links

showBio

boolean

true

Display user bio

className

string

''

Custom CSS class

baseUrl

string

-

Custom API base URL

onLoad

() => void

-

Callback when loaded

onError

(error: Error) => void

-

Error callback


Examples

Full Profile

Minimal Profile

Dark Theme


React Integration


Vue Integration


Profile Data

The profile widget displays:

User Information

  • Display Name: On-chain identity name

  • Avatar: Profile picture (if set)

  • Bio: User description

  • Twitter/X

  • GitHub

  • Discord

  • Telegram

  • Email

  • Website

Chain Identities

  • Polkadot identity

  • Kusama identity

  • Other parachain identities


Event Handling


Handling Missing Profiles


Last updated