Liquid Glass Separator
A subtle translucent hairline divider for content grouping in the Liquid Glass family.
Liquid Glass Separator renders a restrained 1px hairline for separating content regions and internal groups over Base Separator. Following Liquid Glass layering guidance, separators belong to content rather than functional glass chrome and never stack glass on top of glass.
Preview
Section titled “Preview” Web Components React Vue Vue 2
Loading interactive preview… The article and source are ready to read. Interactive controls will appear here when ready.
<div
class="w-full max-w-md rounded-2xl bg-gradient-to-br from-sky-500/20 via-indigo-500/15 to-fuchsia-500/20 p-6"
>
<div
class="flex flex-col gap-4 rounded-xl bg-background/75 p-4 text-sm shadow-sm ring-1 ring-border/50 backdrop-blur-md"
>
<div class="flex flex-col gap-1.5">
<div class="leading-none font-semibold">Proto UI</div>
<div class="text-muted-foreground">
The foundation for your design system.
</div>
</div>
<wc-liquid-glass-separator-root></wc-liquid-glass-separator-root>
<div>
A set of portable component protocols that you can customize,
extend, and build on.
</div>
</div>
</div>Installation
Section titled “Installation”Available starting in 0.3.0-rc.1 and later releases. Import separatorRoot from @proto.ui/prototypes-liquid-glass/separator.
import { separatorRoot } from '@proto.ui/prototypes-liquid-glass/separator';import { LiquidGlassSeparatorRoot } from '../proto-ui/components/react';<LiquidGlassSeparatorRoot />- Layered vibrancy without glass-on-glass: Separator never declares an optical glass surface of its own. By default (
material="auto"), it draws a translucent foreground-tinted hairline that stays legible over both light/dark content and translucent sheets. - Reduced transparency and increased contrast: Passing
material="opaque"or enabling Reduce Transparency (prefers-reduced-transparency: reduce) falls back cleanly to a solid opaque border stroke. Increase Contrast (prefers-contrast: more) and forced-colors modes step up stroke contrast automatically. - Orientation and semantics: Supports
'horizontal'and'vertical'(withself-stretchsizing inside flex rows). Passdecorative={false}to exposerole="separator"andaria-orientationto assistive technologies.
Examples
Section titled “Examples”Vertical
Section titled “Vertical” Web Components React Vue Vue 2
Loading interactive preview… The article and source are ready to read. Interactive controls will appear here when ready.
<div
class="w-full max-w-md rounded-2xl bg-gradient-to-br from-sky-500/20 via-indigo-500/15 to-fuchsia-500/20 p-6"
>
<div
class="flex h-10 items-center gap-4 rounded-xl bg-background/75 px-4 py-2 text-sm shadow-sm ring-1 ring-border/50 backdrop-blur-md"
>
<div>Blog</div>
<wc-liquid-glass-separator-root
orientation="vertical"
></wc-liquid-glass-separator-root>
<div>Docs</div>
<wc-liquid-glass-separator-root
orientation="vertical"
></wc-liquid-glass-separator-root>
<div>Source</div>
</div>
</div> Web Components React Vue Vue 2
Loading interactive preview… The article and source are ready to read. Interactive controls will appear here when ready.
<div
class="w-full max-w-md rounded-2xl bg-gradient-to-br from-sky-500/20 via-indigo-500/15 to-fuchsia-500/20 p-6"
>
<div
class="flex items-center gap-3 rounded-xl bg-background/75 px-4 py-3 text-sm shadow-sm ring-1 ring-border/50 backdrop-blur-md md:gap-4"
>
<div class="flex flex-col gap-1">
<span class="font-semibold">Settings</span>
<span class="text-xs text-muted-foreground">
Manage preferences
</span>
</div>
<wc-liquid-glass-separator-root
orientation="vertical"
></wc-liquid-glass-separator-root>
<div class="flex flex-col gap-1">
<span class="font-semibold">Account</span>
<span class="text-xs text-muted-foreground">
Profile & security
</span>
</div>
<wc-liquid-glass-separator-root
orientation="vertical"
class="hidden md:block"
></wc-liquid-glass-separator-root>
<div class="hidden flex-col gap-1 md:flex">
<span class="font-semibold">Help</span>
<span class="text-xs text-muted-foreground">
Support & docs
</span>
</div>
</div>
</div> Web Components React Vue Vue 2
Loading interactive preview… The article and source are ready to read. Interactive controls will appear here when ready.
<div
class="w-full max-w-md rounded-2xl bg-gradient-to-br from-sky-500/20 via-indigo-500/15 to-fuchsia-500/20 p-6"
>
<div
class="flex flex-col gap-2.5 rounded-xl bg-background/75 p-4 text-sm shadow-sm ring-1 ring-border/50 backdrop-blur-md"
>
<div class="flex items-center justify-between">
<span>Item 1</span>
<span class="text-muted-foreground">Value 1</span>
</div>
<wc-liquid-glass-separator-root
decorative="false"
></wc-liquid-glass-separator-root>
<div class="flex items-center justify-between">
<span>Item 2</span>
<span class="text-muted-foreground">Value 2</span>
</div>
<wc-liquid-glass-separator-root
decorative="false"
></wc-liquid-glass-separator-root>
<div class="flex items-center justify-between">
<span>Item 3</span>
<span class="text-muted-foreground">Value 3</span>
</div>
</div>
</div>Opaque fallback
Section titled “Opaque fallback”Set material="opaque" to force a solid opaque separator independent of OS transparency settings.
Web Components React Vue Vue 2
Loading interactive preview… The article and source are ready to read. Interactive controls will appear here when ready.
<div
class="w-full max-w-md rounded-2xl bg-gradient-to-br from-sky-500/20 via-indigo-500/15 to-fuchsia-500/20 p-6"
>
<div
class="flex flex-col gap-3 rounded-xl bg-background p-4 text-sm shadow-sm ring-1 ring-border"
>
<div class="flex items-center justify-between">
<span class="font-medium">Vibrancy</span>
<span class="text-xs text-muted-foreground">
material="auto"
</span>
</div>
<wc-liquid-glass-separator-root
material="auto"
></wc-liquid-glass-separator-root>
<div class="flex items-center justify-between">
<span class="font-medium">Opaque</span>
<span class="text-xs text-muted-foreground">
material="opaque"
</span>
</div>
<wc-liquid-glass-separator-root
material="opaque"
></wc-liquid-glass-separator-root>
</div>
</div> Web Components React Vue Vue 2
Loading interactive preview… The article and source are ready to read. Interactive controls will appear here when ready.
<div
class="w-full max-w-md rounded-2xl bg-gradient-to-br from-sky-500/20 via-indigo-500/15 to-fuchsia-500/20 p-6"
>
<div
dir="rtl"
class="flex flex-col gap-4 rounded-xl bg-background/75 p-4 text-sm shadow-sm ring-1 ring-border/50 backdrop-blur-md"
>
<div class="flex flex-col gap-1.5">
<div class="leading-none font-semibold">Proto UI</div>
<div class="text-muted-foreground">
الأساس لنظام التصميم الخاص بك
</div>
</div>
<wc-liquid-glass-separator-root></wc-liquid-glass-separator-root>
<div>
مجموعة من المكونات القابلة للتخصيص والتوسيع والبناء عليها.
</div>
</div>
</div>The following props belong to Root:
| Prop | Type | Default | Description |
|---|---|---|---|
orientation | 'horizontal' 'vertical' | 'horizontal' | Divider orientation |
decorative | boolean | true | Hides the divider from assistive technologies when true; exposes role="separator" and aria-orientation when false |
material | 'auto' 'opaque' | 'auto' | Uses a translucent adaptive hairline by default; set to opaque for a solid separator stroke |
Exposes read-only orientation and decorative states with no focus, interaction channel, or optical material slot.