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 (samelargeglass as the floatingSidebar) 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 betweenminWidthandmaxWidth, 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 becomesSettingsTabsabove 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
hrefrender throughlinkComponent(pass Next.jsLink); width and collapsed state are controlled or reported through callbacks, so you can persist them in a cookie for flicker-free SSR.
Installation (Shadcn Registry)
npx shadcn@latest add @apple-liquid/settings-splitUsage
'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
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | — | Accessible name of the navigation |
items | SettingsNavItem[] | — | { key, title, subtitle?, icon, tile, active, href?, onClick?, badge? } |
collapsed / defaultCollapsed / onCollapsedChange | boolean | false | Collapsed to icon tiles |
width / defaultWidth / onWidthChange | number | 256 | Expanded width; onWidthChange fires when a drag ends |
minWidth / maxWidth | number | 232 / 360 | Drag limits |
linkComponent | ElementType | 'a' | Renders items with href (e.g. Next.js Link) |
glass | boolean | true | Glass navigation and tabs; glass={false} is 100% opaque |
locale | LiquidGlassLocaleInput | Global locale | UI language of this instance; overrides <LiquidGlassProvider locale> |
messages | Partial<SettingsSplitMessages> | Built-in text | Text 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.
Filter Panel
Collapsible Liquid Glass filter area for list pages — a search field plus rows of single / multiple choice chips, kept as a draft until Search and reset in one tap.
Tiptap Editor
A Notion-style rich-text editor on Tiptap 3 with a Liquid Glass surface — slash menu, selection bubble, block drag handle, tables, columns, cards, toggles, math, code, embeds, attachments and four kinds of diagrams — plus a read-only renderer.