The Widget API is experimental and may change in the future. It has been marked as @deprecated to remind the developer that it is experimental. It is not “deprecated”, just experimental. Please don’t use it in production versions of your app. We do not guarantee backward compatibility, or that the API will remain stable.
import {Widget} from "attio/client"

Props

text
() => void
required
The text content to display in the badge
color
'amber' | 'blue' | 'cyan' | 'green' | 'grey' | 'lavender' | 'lime' | 'orange' | 'pink' | 'purple' | 'red' | 'yellow'
required
The color variant for the badge

Example

<Widget.Badge text="42" color="green" />