macOS
JS behaviour
Desktop widgets
Sonoma’s desktop widgets: an analog clock, weather, calendar and a music player — soft gradients, subtle glass, and a tinted mode that matches the wallpaper.
Real scenarios
The component as it is used in a product — not a specimen grid.
Desktop widgets
The clock really ticks and the music really plays — press play and watch the progress bar move. The calendar always highlights today, and the glass flips with the theme.
۱۴:۰۵ ۰۵
Istanbul
Istanbul
Sunny · feels like ۲۷°
۲۸°
Now
⛅
۲۸°
2 PM
☀️
۲۹°
3 PM
☀️
۳۰°
4 PM
🌤
۲۹°
5 PM
🌥
۲۷°
اکتبر ۲۰۲۶
ش
ی
د
س
چ
پ
ج
Design review · ۱۷:۰۰
۱:۲۴ / ۳:۵۲
Important props
| Prop | Type | Default | What it does |
|---|---|---|---|
| sizes | grid | 'S · M · L' | Three sizes on one grid; soft 22–24px corners. |
| material | style | 'tinted · glass' | Subtle glass with a system tint, or full colour. |
| live | behaviour | 'ticking' | The clock really ticks; the weather has live samples. |
Snippet
<div class="mcwdg" data-size="medium">
<span class="mcwdg-clock">۱۴:۰۵</span>
<div class="mcwdg-forecast">☀️ ۲۸° …</div>
</div>
<style>
.mcwdg { border-radius: 22px; padding: 16px; color: #fff;
background: linear-gradient(145deg, #2e3c58, #141b2b);
box-shadow: 0 10px 30px #00000033; font-family: system-ui; }
.mcwdg[data-size='small'] { inline-size: 148px; aspect-ratio: 1; }
.mcwdg[data-size='medium'] { inline-size: 312px; block-size: 148px; }
</style>