Migration Notice: We are transitioning from <bw-widget> to <nw-blocks> tags. While both are currently supported for backward compatibility, <nw-blocks> is now the recommended tag for all new implementations. Existing <bw-widget> implementations will continue to function.
Match Overview Mini is a compact version of the match overview widget optimized for space-constrained layouts like sidebars, mobile displays, or content cards. It features an interactive prediction section with clickable betting options and maintains all essential match information in a condensed format.
Key Features:
| Attribute | Type | Required | Default | Description |
|---|---|---|---|---|
id |
string | Yes | - | Must be “matchOverviewMini” |
matchid |
string | Yes | - | Unique match identifier (format: sport-team1-team2-YYYYMMDD) |
language |
string | No | Auto-detected | ISO 639-1 language code for localization |
country |
string | No | Auto-detected | ISO 3166-1 country code (supports state format: US-CA, CA-ON) |
countryState |
string | No | - | State/province code for US/Canada (automatically parsed) |
timezone |
string | No | Auto-detected | IANA timezone identifier for date/time display |
ctacolors |
string/array | No | “#05842A” | CTA button background color(s) |
ctahovercolors |
string/array | No | “#096725” | CTA button hover state color(s) |
referer |
string | No | - | Referrer tracking parameter for analytics |
Match IDs follow the same convention as other match widgets:
Format: football-{team1}-{team2}-{YYYYMMDD}
Examples:
football-nigeria-england-20240702football-barcelona-realmadrid-20250215Format: mma-{fighter1}-{fighter2}-{YYYYMMDD}
Examples:
mma-douglassilvadeadrade-romandolidze-20240702mma-mcgregor-poirier-20250315Format: basketball-{team1}-{team2}-{YYYYMMDD}
Examples:
basketball-lakers-celtics-20250220The mini widget displays three betting options for football or two for MMA:
Football (1-X-2 Format):
Visual Indicators:
Behavior:
Header Section:
Match Information:
Prediction Section:
| Feature | Football | MMA |
|---|---|---|
| Betting Options | 1-X-2 (three buttons) | 1-2 (two buttons) |
| Draw Option | Yes (X button) | No |
| Visual Separator | Yes, below teams | No |
| Event Number | Not displayed | Displayed with league name |
| Layout Style | Standard team badges | Fighter profile style |
<nw-blocks
id="matchOverviewMini"
matchid="football-manchesterunited-liverpool-20250301">
</nw-blocks>
<nw-blocks
id="matchOverviewMini"
matchid="mma-mcgregor-poirier-20250315"
language="en"
country="US">
</nw-blocks>
<nw-blocks
id="matchOverviewMini"
matchid="football-psg-marseille-20250310"
ctacolors="#FF6B00"
ctahovercolors="#E65100">
</nw-blocks>
<nw-blocks
id="matchOverviewMini"
matchid="basketball-nets-knicks-20250305"
country="US-NY"
timezone="America/New_York">
</nw-blocks>
<nw-blocks
id="matchOverviewMini"
matchid="football-bayern-dortmund-20250318"
referer="sidebar-widget-top">
</nw-blocks>
timezone for accurate time displaylanguage and country for proper translationsreferer to track conversion sourcesPrediction options are controlled via Sanity CMS:
{
prediction: {
label: "Expert Pick",
predictionOption: "1", // Which option is active: 0=disabled, 1=Team A, 2=Draw, 3=Team B
hideContent: false,
brand: {
teamA: {
content: "Team A prediction text",
cloakedLink: "partner-123",
ctaLabel: "Bet on Team A"
},
draw: {
content: "", // Empty = disabled
cloakedLink: "",
ctaLabel: ""
},
teamB: {
content: "", // Empty = disabled
cloakedLink: "",
ctaLabel: ""
}
}
}
}
Prediction Option Values:
0 = disabled, 1 = Team A, 2 = Draw, 3 = Team B0 or 2 defaults to Fighter A, 1 = Fighter A, 3 = Fighter BAutomatic date/time conversion using JavaScript:
// Automatically converts to user's locale
formatDateWithUserLocale(matchDate, userLanguage)
// Time formatting with proper hour cycle
new Intl.DateTimeFormat("fr-FR", {
hour: 'numeric',
minute: 'numeric',
hourCycle: 'h23'
})
Supported Timezones:
Multiple color format support:
<!-- Hex colors -->
<nw-blocks id="matchOverviewMini" matchid="..."
ctacolors="#05842A"
ctahovercolors="#096725">
</nw-blocks>
<!-- Array format for gradients -->
<nw-blocks id="matchOverviewMini" matchid="..."
ctacolors='["#05842A", "#096725"]'>
</nw-blocks>
<!-- Named CSS colors -->
<nw-blocks id="matchOverviewMini" matchid="..."
ctacolors="darkgreen">
</nw-blocks>
| Feature | Match Overview Mini | Match Overview 2 |
|---|---|---|
| Size | Compact (280-400px) | Full-width (400-800px) |
| Countdown | No | Yes, real-time |
| Live Indicator | No | Yes, animated |
| Predictions | Interactive buttons | Text display |
| Betting Options | 1-X-2 clickable | Single CTA |
| Content Detail | Minimal | Comprehensive |
| Use Case | Sidebars, mobile | Main content area |
| Load Time | Fastest | Fast |
| User Interaction | Multiple CTAs | Single CTA |
When to use Mini:
When to use Overview 2:
{
matchId: "football-team1-team2-YYYYMMDD",
label: "Featured Match",
eventNumber: "UFC 302", // For MMA only
competition: {
name: "Premier League",
logo: "https://...",
date: "2025-03-15T19:45:00Z"
},
teamA: {
name: "Team A",
logo: "https://...",
flag: "https://..." // Optional
},
teamB: {
name: "Team B",
logo: "https://...",
flag: "https://..." // Optional
},
prediction: {
label: "Expert Pick",
content: "Prediction text",
hideContent: false,
predictionOption: "1", // Active option
brand: {
teamA: { cloakedLink, content, ctaLabel },
draw: { cloakedLink, content, ctaLabel },
teamB: { cloakedLink, content, ctaLabel }
}
},
sportType: "sport-football" | "sport-mma",
oddsPredictions: {
brand: {
cloakedLink: "partner-123"
}
}
}
SANITY_MATCH_OVERVIEW:{matchid}All examples above use the new <nw-blocks> tag. For backward compatibility, you can still use <bw-widget>:
<!-- Old syntax (still supported) -->
<bw-widget
id="matchOverviewMini"
matchid="football-nigeria-england-20240702"
ctacolors="#05842A"
ctahovercolors="#096725">
</bw-widget>
<!-- New syntax (recommended) -->
<nw-blocks
id="matchOverviewMini"
matchid="football-nigeria-england-20240702"
ctacolors="#05842A"
ctahovercolors="#096725">
</nw-blocks>
Both tags work identically, but <nw-blocks> is recommended for all new implementations.