Quick start
Variants
Compact
Minimal badge showing only the score:Detailed
Full badge with score, equivalency, and lifecycle breakdown:Inline
Inline text format for embedding in paragraphs:Attributes
| Attribute | Type | Required | Description |
|---|---|---|---|
product-id | String | Yes | Hey Chocolate product ID |
api-key | String | Yes | API key (use read-only key) |
variant | String | No | compact, detailed, inline (default: compact) |
theme | String | No | light, dark, auto (default: auto) |
locale | String | No | Language code (default: en) |
show-equivalency | Boolean | No | Show equivalency text (default: true) |
show-breakdown | Boolean | No | Show lifecycle breakdown (default: false) |
animated | Boolean | No | Enable animations (default: true) |