Badge
component along with Avatar
or Name
components to display user attestations attached to their account
BadgeReact
Prop | Type | Description |
---|---|---|
className | string | Optional className override for top span element |
tooltip | boolean | string | Controls whether the badge shows a tooltip on hover. When true , displays the attestation name. When a string is provided, shows that custom text instead. Defaults to false |
<Name />
and <Avatar />
<Name />
, best used when <Name />
are displayed alongside <Avatar />
components.
In both examples we use the Coinbase Verified Account schema ID to show the Coinbase verified badge on the Name and Avatar components.
<Avatar />
, best used when <Avatar />
is not paired with any labels.