Skip to Content
Liquid Glass UI
Blocks

Settings Split

System Settings-style two-pane layout — a resizable, collapsible Liquid Glass navigation of iOS icon tiles beside your content, switching to iOS 27 segmented tabs on phones.

SettingsSplit is a block (registry:block) for settings and preferences pages:

  • iPad / Mac (>= 768px): a floating Liquid Glass navigation (same large glass as the floating Sidebar) of iOS Settings-style rows — colored icon tile, name and description — next to your content, both the same height. The active row uses the Sidebar's accent tint.
  • Resize handle: the 12px handle between the panes behaves like Sidebar's: drag between minWidth and maxWidth, drag 32px past the minimum to collapse to icon tiles (and back out to expand), click to toggle, ← → from the keyboard. Collapsed rows show their name in a tooltip and badges as an orange dot.
  • Phone (< 768px): the navigation becomes SettingsTabs above the content — an iOS 27 segmented capsule that scrolls sideways when the labels don't fit, keeping the current tab in view.
  • Framework-free: items with href render through linkComponent (pass Next.js Link); width and collapsed state are controlled or reported through callbacks, so you can persist them in a cookie for flicker-free SSR.
apple-liquid-ui/preview/settings-split-demo
MacBook · 16:10

Installation (Shadcn Registry)

npx shadcn@latest add @apple-liquid/settings-split

Usage

'use client';

import Link from 'next/link';
import { usePathname } from 'next/navigation';
import { BellIcon, UserRoundIcon } from 'lucide-react';
import { SettingsSplit } from '@/components/blocks/settings-split';

export function SettingsLayout({ children }: { children: React.ReactNode }) {
  const pathname = usePathname();
  return (
    <SettingsSplit
      label="Settings"
      linkComponent={Link}
      onWidthChange={(width) => (document.cookie = `settings_nav_width=${width}; path=/`)}
      onCollapsedChange={(collapsed) => (document.cookie = `settings_nav_collapsed=${collapsed}; path=/`)}
      items={[
        { key: 'account', title: 'Account', subtitle: 'Name and email', icon: UserRoundIcon, tile: 'bg-(--apple-blue)', href: '/settings/account', active: pathname === '/settings/account' },
        { key: 'notifications', title: 'Notifications', icon: BellIcon, tile: 'bg-[#ff383c]', href: '/settings/notifications', active: pathname === '/settings/notifications' },
      ]}
    >
      {children}
    </SettingsSplit>
  );
}

Props API

SettingsSplit

PropTypeDefaultDescription
labelstring—Accessible name of the navigation
itemsSettingsNavItem[]—{ key, title, subtitle?, icon, tile, active, href?, onClick?, badge? }
collapsed / defaultCollapsed / onCollapsedChangebooleanfalseCollapsed to icon tiles
width / defaultWidth / onWidthChangenumber256Expanded width; onWidthChange fires when a drag ends
minWidth / maxWidthnumber232 / 360Drag limits
linkComponentElementType'a'Renders items with href (e.g. Next.js Link)
glassbooleantrueGlass navigation and tabs; glass={false} is 100% opaque
localeLiquidGlassLocaleInputGlobal localeUI language of this instance; overrides <LiquidGlassProvider locale>
messagesPartial<SettingsSplitMessages>Built-in textText overrides, deep-merged over the built-in text and the global messages.settingsSplit

SettingsTabs

Rendered automatically by SettingsSplit on phones; use it directly for a custom layout. Takes label, items, linkComponent, glass and className.

On this page