5Sponsor

Divider

Horizontal or vertical divider / rule

Terminal
divider-demo
No opentui live preview is registered for this example yet.

Installation

pnpm dlx shadcn@latest add @termcn/divider

Usage

import { Divider } from "@/components/ui/divider";
<Divider label="Section" />

Examples

Vertical rule and label styling

Use dividerChar and height for vertical rules; titlePadding and labelColor adjust the labeled horizontal variant.

Terminal
divider-custom
No opentui live preview is registered for this example yet.

API Reference

Divider

PropTypeDefault
variant"single" | "double" | "bold""single"
orientation"horizontal" | "vertical""horizontal"
colorstringundefined
labelstringundefined
labelColorstringundefined
dividerCharstringundefined
titlePaddingnumber1
paddingnumber0
heightnumber1
widthnumber | "auto""auto"

On horizontal dividers, the rule still uses Ink’s top border on flex-grown segments; dividerChar applies to vertical orientation.