Divider
layout
Divider: a horizontal or vertical separator line with optional label
Terminal
$termuijs render divider
Installation
$ bunx termuijs add divider
Copies the source into src/components/divider/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { Divider } from '@termuijs/widgets'ts
new Divider(style: Partial<Style> = {}, opts: DividerOptions = {})API Reference
Divider
| Prop | Type | Required | Description |
|---|---|---|---|
orientation | DividerOrientation | optional | Direction of the divider line |
label | string | optional | Optional centered label inside the line |
char | string | optional | Character used to draw the line (overrides default) |
color | Color | optional | Color of the line |