/
1.1k
Sponsor

Divider

Horizontal or vertical divider / rule

Terminal

Installation

$ pnpm dlx shadcn@latest add @termcn/ink/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 still uses Ink’s top border on flex-grown segments; dividerChar applies to vertical orientation.

Notes

Accessibility

termcn exposes the following behavior through Ink's terminal accessibility APIs. This is not a browser ARIA or general WCAG-conformance claim.

  • Screen reader: Ink labels and semantic state expose the component without relying on visual styling alone.