Separator

Visually or semantically separates content.

@react.component
let make = () =>
  <div className="flex max-w-sm flex-col gap-4 text-sm">

Installation

npx shadcn@latest add @rescript-shadcn/Separator

Usage

<Separator />

Examples

Vertical

Use orientation="vertical" for a vertical separator.

@react.component
let make = () =>
  <div className="flex h-5 items-center gap-4 text-sm">

Vertical separators between menu items with descriptions.

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

List

Horizontal separators between list items.

@react.component
let make = () =>
  <div className="flex w-full max-w-sm flex-col gap-2 text-sm">

API Reference

See the Base UI Separator documentation.