/
1.1k
Sponsor

Divider

Horizontal or vertical divider / rule

Terminal

Installation

$ pnpm dlx shadcn@latest add @termcn/opentui/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

API Reference

Divider

PropTypeDefault
variant"single" | "double" | "bold""single"
orientation"horizontal" | "vertical""horizontal"
colorstring-
labelstring-
labelColorstring-
dividerCharstring-
titlePaddingnumber1
paddingnumber0
heightnumber1
widthnumber | "auto""auto"

On horizontal dividers, the rule uses OpenTUI border segments; dividerChar applies to vertical orientation.