iOS — Liquid Glass
JS behaviour
Floating glass tab bar
iOS 26’s tab bar: a floating liquid-glass pill over the content, with rim highlight, refracted light and a selection that rolls between tabs like a droplet; tapping the current tab scrolls to top.
Real scenarios
The component as it is used in a product — not a specimen grid.
The tab bar that floats like glass
A liquid-glass pill floats over the music app with a lit rim and refracted light; the selection rolls between tabs like a droplet on a spring, the red badge counts your unread messages, and tapping the current tab scrolls the stage back to the top. The toggle switches to the fully translucent «clear» recipe.
Good evening, Liam
Istanbul Alleys
Bachar Choir — now playing
Recently played
Bandari Nights
Istanbul Rain
Crossroads
Alley No. 24
Made for you
Rainy NightAnna & Omar
Southern SeaBandari Nights
Morning of PardisEmma Carter
Important props
| Prop | Type | Default | What it does |
|---|---|---|---|
| material | variant | 'regular' | regular is the standard glass, clear the fully translucent one. |
| selection | motion | 'spring' | The selection droplet rolls on a spring and squashes at the edges. |
| badge | count | null | The system’s red badge on tabs like Mail. |
Snippet
<nav class="iotab">
<button class="iotab-item" data-current>🏠<span class="iotab-label">خانه</span></button>
<button class="iotab-item" data-badge="3">✉️</button>
</nav>
<style>
.iotab { display: inline-flex; gap: 4px; padding: 6px; border-radius: 999px;
background: #ffffffd9; backdrop-filter: blur(24px) saturate(1.8);
box-shadow: 0 8px 32px #00000033, inset 0 0 0 .5px #ffffffb3; }
.iotab-item[data-current] { background: #007aff1f; }
.iotab-item { display: grid; place-items: center; gap: 2px; inline-size: 56px;
block-size: 44px; border-radius: 999px; color: #8E8E93; }
.iotab-item[data-current] { color: #007AFF; }
</style>