Badge
component along with Avatar
or Name
components to display user attestations attached to their account
Usage
Badge with default colors:
Badge with custom colors:
Badge with Tooltip
You can enable a tooltip for the attestation badge to provide context about what the badge represents:
With custom tooltip text:
Props
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 |
Badge on <Name />
and <Avatar />
Badge with <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.
Badge with
<Avatar />
, best used when <Avatar />
is not paired with any labels.