logic2b ui
Copy-paste components, AI-assisted.
Docs
Components
Registry
Installation
npx logic2b@next add separatorUsage
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
ProfileBillingSettings
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.
Separator
ComponentProps: React.ComponentProps<typeof SeparatorPrimitive.Root>| Prop | Type | Required | Default | Description |
|---|---|---|---|---|
orientation | "horizontal" | "vertical" | No | "horizontal" | Either `vertical` or `horizontal`. Defaults to `horizontal`. |
decorative | boolean | No | true | Whether 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.
- 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.