Skip to Content
Liquid Glass UI
Components

Tabs

Liquid Glass Tabs, Segmented Control, and Floating Tab Bar built to Apple iOS 27 and macOS 27 guidelines, featuring press-and-drag liquid lens magnification and automatic responsive adaptation.

Built on @base-ui/react/tabs, @liqui-design/glass, and motion/react, faithfully following Apple iOS 27 (Segmented Controls / Tab Bars) and Apple macOS 27 (Segmented Controls):

  • Dynamic liquid droplet lens: Clicking or pressing and dragging the active capsule horizontally lifts it into a crystal-clear optical lens (blur: 0, dispersion: 0.06) that magnifies and refracts labels beneath it with velocity-driven squash and stretch.
  • Viewport responsive: Automatically adapts sizing, radii, icon/label stacking, and spring damping between < 768px (iOS 27) and >= 768px (macOS 27).

Floating Liquid Glass (Glass)

Click to switch, or press and drag the active capsule left and right to watch the liquid lens magnify and disperse the underlying text:

apple-liquid-ui/preview/tabs-liquid-hero
MacBook · 16:10

Installation (Shadcn Registry)

# Install via the configured @apple-liquid namespace
npx shadcn@latest add @apple-liquid/tabs

# Or install directly via URL
npx shadcn@latest add https://your-domain.com/r/tabs.json

Floating Tab Bar (iOS 27 ↔ macOS / iPad 27)

A single variant="tab-bar" adapts automatically across breakpoints:

  • Mobile (< 768px): Signature iOS 27 62px floating glass pill with stacked icons and 11px labels, Apple Blue #0088FF / #0091FF active tint, and drag-to-scrub switching.
  • Desktop (>= 768px): Expands into an iPad / macOS 27 44px horizontal icon + label floating pill navigation bar.
apple-liquid-ui/preview/tabs-floating-tab-bar
MacBook · 16:10

Segmented Control (Default)

Aligned with iOS 27 (44px capsule track) and macOS 27 (32px compact capsule track), with the same refractive droplet while dragging:

apple-liquid-ui/preview/tabs-segmented
MacBook · 16:10

Minimal Underline (Line)

Ideal for content sections, forms, and settings pages with an Apple Blue spring underline indicator:

apple-liquid-ui/preview/tabs-line
MacBook · 16:10

Vertical Glass Tabs

Pass orientation="vertical" for a floating vertical Liquid Glass tab rail:

apple-liquid-ui/preview/tabs-vertical
MacBook · 16:10

Usage

import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs';

export function Example() {
  return (
    <Tabs defaultValue="glass">
      <TabsList glass>
        <TabsTrigger value="glass">Liquid Glass</TabsTrigger>
        <TabsTrigger value="optics">Refraction</TabsTrigger>
        <TabsTrigger value="motion">Motion</TabsTrigger>
      </TabsList>
      <TabsContent value="glass">Tab panel content...</TabsContent>
    </Tabs>
  );
}

Props API

TabsList

PropTypeDefaultDescription
variant'default' | 'tab-bar' | 'line''default'Layout mode: default segmented control, tab-bar responsive icon bar, line minimal underline
glassbooleantrueLiquid Glass material (false renders 100% opaque segmented/tab bar and solid spring thumb; ignored for line)
refractionnumber28Convex lens refraction strength (px) for the dragged liquid droplet
dispersionnumber0.055Subtle RGB chromatic dispersion at droplet edges (0 disables)
disableMotionbooleanfalseDisable drag scrubbing and refractive lens effects (respects prefers-reduced-motion)

On this page