Koori UI
Components

GlassSeparator

A glassmorphism-styled divider line powered by Radix UI, supporting horizontal and vertical orientations.

Preview

Components
Docs
Examples

Usage

import { GlassSeparator } from "koori-ui";
 
<GlassSeparator />

Vertical

<div className="flex h-8 items-center gap-4">
  <span>Item A</span>
  <GlassSeparator orientation="vertical" className="h-full" />
  <span>Item B</span>
</div>

In a Card

import { GlassCard, GlassSeparator, GlassText } from "koori-ui";
 
<GlassCard>
  <GlassText>Section one</GlassText>
  <GlassSeparator className="my-4" />
  <GlassText>Section two</GlassText>
</GlassCard>

Props

PropTypeDefaultDescription
orientation"horizontal" | "vertical""horizontal"Line direction
decorativebooleantrueWhen true, hides from the accessibility tree
classNamestringAdditional CSS classes

All Radix Separator.Root props are also accepted.

On this page