OptionalborderForeground color applied to all border glyphs and the vertical bars around each content line. When omitted, borders are uncolored.
Parsed and applied by colorText, which emits ANSI SGR sequences and appends a reset.
OptionalborderBorder drawing style.
OptionalpaddingHorizontal padding (spaces) added on both left and right sides of each content line. Top/bottom padding is not applied (MVP behavior).
OptionalstyleText transformer applied to each content line before width calculation.
Useful for emphasis (e.g., bold) or composed styles. The result of style
contributes to the measured contentWidth, which may overcount visible width
because ANSI sequences occupy code units but no columns. This is acceptable
for simple cases; see box caveats if you need precise alignment.
OptionaltitleOptional title displayed in the top border, centered, and rendered bold.
OptionalwidthMinimum total width of the box, including left/right borders.
If omitted, the width is the maximum of:
padding * 20Note: Width is computed via String.length (UTF-16 code units). Terminals
render box-drawing characters and East Asian text with varying cell
widths; alignment can differ in those contexts. See caveats in box.
Visual customization options for box.