Components
- Accordion
- Alert
- Alert Dialog
- Aspect Ratio
- Avatar
- Badge
- Breadcrumb
- Button
- Button Group
- Calendar
- Card
- Carousel
- Chart
- Checkbox
- Code Block
- Collapsible
- Combobox
- Command
- Context Menu
- Copy Button
- Data Table
- Date Picker
- Dialog
- Drawer
- Dropdown Menu
- Empty
- Field
- Form
- Hover Card
- Input
- Input Group
- Input OTP
- Item
- Kbd
- Label
- Menubar
- Native Select
- Navigation Menu
- Page Header
- Pagination
- Panel
- Popover
- Progress
- Radio Group
- Resizable
- Scroll Area
- Section Header
- Select
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Sonner
- Spinner
- Stat
- Stat Card
- Switch
- Table
- Tabs
- Textarea
- Theme Toggle
- Toggle
- Toggle Group
- Tooltip
Separator
Visually or semantically separates content.
Swiss UI
DocsRegistrySource
01
Installation
Add the separator component with the shadcn CLI.
bash
npx shadcn@latest add https://swiss.ui.unsanity.ai/r/separator.json02
Usage
tsx
import { Separator } from "@/components/ui/separator"03
Examples
Default
Swiss UI
DocsRegistrySource
import { Separator } from "@/components/ui/separator"
<div className="w-64 text-sm">
<p>Swiss UI</p>
<Separator className="my-3" />
<div className="flex h-5 items-center gap-3">
<span>Docs</span>
<Separator orientation="vertical" />
<span>Registry</span>
</div>
</div>