iOS — Liquid Glass JS behaviour

Home-screen widgets

iOS widgets in the 4×2 grid sizes: an hourly weather, today’s calendar, batteries and short suggestions; glassy standby corners and the home screen’s continuous radius.

Documentation

Real scenarios

The component as it is used in a product — not a specimen grid.

Widgets on the home screen

A pocket of an iOS home screen on a dark wallpaper: the small widget pairs a live ticking clock with a battery ring, the medium one keeps Istanbul’s next hours in a swipeable strip, the large one lists today’s calendar, and the glassy accessory pill stays from the lock screen — all with the official 22px continuous radius.

Thursday 16 Oct · ۰۹:۴۱

Istanbul ۰۹:۴۱ پنجشنبه ۱۶ مهر
76% Battery
Suggestion

Leave early — rain is due at 18:00 in Taksim.

Istanbul Partly cloudy · H 24° L 11° 18°
Now18°
1419°
1520°
1618°
1716°
1814°
Today پنجشنبه ۱۶ مهر
Design reviewRoom 3 · online
Lunch with SaraCafe Istanbul
Volleyball practiceBeyoğlu Sports Hall
Reading: Liquid GlassHIG · 30 min

Important props

Important props
Prop Type Default What it does
sizes grid '2×2 · 4×2 · 4×4' Small, medium and large on the iOS grid.
radius length '22px' The official widget radius matching the screen’s corners.
backgrounds style 'tinted · photo' Light, dark or photo backgrounds; icons always SF-like.

Snippet

<div class="iowdg" data-size="medium">
    <header><span>استانبول</span><b>۱۸°</b></header>
    <div class="iowdg-hours">…hourly strip…</div>
</div>

<style>
.iowdg { border-radius: 22px; padding: 14px; background: #fff;
         box-shadow: 0 1px 3px #0000001a; font-family: -apple-system, system-ui; }
.iowdg[data-size='small'] { inline-size: 158px; aspect-ratio: 1; }
.iowdg[data-size='medium'] { inline-size: 334px; block-size: 158px; }
</style>