Single-cell-thick line used to visually separate two regions.
Renders a horizontal or vertical run of the active theme's BorderChars glyphs (defaulting to the same style used by box borders). Optionally embeds a centred title in the run, in which case the line is broken with a small leader / trailer:
──── Title ────
The widget is purely presentational — it owns no state and emits a single TextNode. Apps typically place it between rows in a Layout.column or between columns in a Layout.row:
Glyph set to draw with. Defaults to the theme's chars.
title
Optional centred title. Rendered with the theme's primary slot; the surrounding rule uses the theme's border slot. If width cannot fit the title plus at least one cell of leader / trailer the title is dropped and the rule fills the row.
width
Length of the run in cells. width <= 0 yields no node (returns an empty list), which keeps Layout.column composition simple.
Emits one single-character TextNode per row — the simplest model given the renderer's row-per-text-node convention. Like horizontal, a non-positive height yields no nodes.
Value parameters
at
Top-left cell. Defaults to (1, 1).
chars
Glyph set to draw with. Defaults to the theme's chars.