Skip to content
Logic2BUI

Search docs

Search components and documentation

New
Menu

Separator

Visually or semantically separates content.

logic2b ui

Copy-paste components, AI-assisted.

Docs
Components
Registry

Installation

npx logic2b@next add separator

Usage

import { Separator } from "@/components/ui/separator"

<Separator />
<Separator orientation="vertical" />

Usage notes

Vertical separators need a parent with a defined height (e.g. a flex row with h-5) to be visible.

Examples

Vertical

Profile
Billing
Settings

As a labeled divider

or continue with

Live playground

Edit the component props and inspect the exact JSX before copying it. The preview loads only when this section enters the viewport.

Generated JSX
<Separator
  orientation="horizontal"
  decorative
 />

API reference

Generated from the public TypeScript exports in src/ui/separator.tsx.

View JSON

Separator

Component
Props: React.ComponentProps<typeof SeparatorPrimitive.Root>
PropTypeRequiredDefaultDescription
orientation"horizontal" | "vertical"No"horizontal"Either `vertical` or `horizontal`. Defaults to `horizontal`.
decorativebooleanNotrueWhether or not the component is purely decorative. When true, accessibility-related attributes are updated so that that the rendered element is removed from the accessibility tree.

Accessibility contract

Machine-readable behavior and consumer responsibilities for separator.

View JSON
Support
Primitive-managed
Pattern
separator
Radix Separator

Built-in semantics

  • Can be decorative (hidden from the accessibility tree) or expose separator orientation.

Consumer responsibilities

  • Keep decorative=true unless the separator conveys a meaningful structural boundary.