SlabUI
The Foundation for your Design System
A set of beautifully designed components that you can customize, extend, and build on.
import { Separator } from "@/components/ui/separator"
export function SeparatorDemo() {
return (
<div className="flex max-w-sm flex-col gap-4 text-sm">Installation
pnpm slabui add separator
Usage
import { Separator } from "@/components/ui/separator"<Separator />Vertical
Use orientation="vertical" for a vertical separator.
Blog
Docs
Source
import { Separator } from "@/components/ui/separator"
export function SeparatorVertical() {
return (
<div className="flex h-5 items-center gap-4 text-sm">Menu
Vertical separators between menu items with descriptions.
SettingsManage preferences
AccountProfile & security
HelpSupport & docs
import { Separator } from "@/components/ui/separator"
export function SeparatorMenu() {
return (
<div className="flex items-center gap-2 text-sm md:gap-4">List
Horizontal separators between list items.
- Item 1
- Value 1
- Item 2
- Value 2
- Item 3
- Value 3
import { Separator } from "@/components/ui/separator"
export function SeparatorList() {
return (
<div className="flex w-full max-w-sm flex-col gap-2 text-sm">API Reference
See the Base UI Separator documentation.