Rule
display
Rule: a horizontal or vertical divider line with an optional centered title
Terminal
$termuijs render rule
Installation
$ bunx termuijs add rule
Copies the source into src/components/rule/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { Rule } from '@termuijs/widgets'ts
new Rule(style: Partial<Style> = {}, opts: RuleOptions = {})API Reference
Rule
| Prop | Type | Required | Description |
|---|---|---|---|
orientation | RuleOrientation | optional | Line direction |
title | string | optional | Title centered in the line (horizontal only) |
color | Color | optional | Line color |