ReScript Shadcn
Get started
  • Installation
Components
  • Accordion
  • Alert
  • AlertDialog
  • AspectRatio
  • Attachment
  • Avatar
  • Badge
  • Breadcrumb
  • Bubble
  • Button
  • ButtonGroup
  • Calendar
  • Card
  • Carousel
  • Chart
  • Checkbox
  • Collapsible
  • Combobox
  • Command
  • ContextMenu
  • DataTable
  • DatePicker
  • Dialog
  • Direction
  • Drawer
  • DropdownMenu
  • Empty
  • Field
  • HoverCard
  • Input
  • InputGroup
  • InputOtp
  • Item
  • Kbd
  • Label
  • Marker
  • Menubar
  • Message
  • MessageScroller
  • NativeSelect
  • NavigationMenu
  • Pagination
  • Popover
  • Progress
  • RadioGroup
  • Resizable
  • ScrollArea
  • Select
  • Separator
  • Sheet
  • Sidebar
  • Skeleton
  • Slider
  • Sonner
  • Spinner
  • Switch
  • Table
  • Tabs
  • Textarea
  • Toast
  • Toggle
  • ToggleGroup
  • Tooltip
  • Typography

Separator

Visually or semantically separates content.

shadcn/ui
The Foundation for your Design System
A set of beautifully designed components that you can customize, extend, and build on.

Installation#

npx shadcn@latest add @rescript-shadcn/Separator

Usage#

<Separator />

Examples#

Vertical#

Use orientation="vertical" for a vertical separator.

Blog
Docs
Source

Menu#

Vertical separators between menu items with descriptions.

SettingsManage preferences
AccountProfile & security
HelpSupport & docs

List#

Horizontal separators between list items.

Item 1
Value 1
Item 2
Value 2
Item 3
Value 3

API Reference#

See the Base UI Separator documentation.

@react.component
let make = () =>
  <div className="flex max-w-sm flex-col gap-4 text-sm">
@react.component
let make = () =>
  <div className="flex h-5 items-center gap-4 text-sm">
@react.component
let make = () =>
  <div className="flex items-center gap-2 text-sm md:gap-4">
@react.component
let make = () =>
  <div className="flex w-full max-w-sm flex-col gap-2 text-sm">