DividerRenderer
Horizontal divider rule with an optional inline label. `── label ────────────` Renders a single row; vertical orientation emits one column of `│` chars when the node bounds are taller than wide (rare but kept for symmetry). Node props (all optional): - `label` string Inline label rendered left-aligned after the rule. Default: ''. - `char` string Rule character. Default: '─' (horizontal), '│' (vertical). - `align` string 'left' | 'center' | 'right' — label alignment within the rule. Default: 'left'. - `orientation` string 'horizontal' | 'vertical'. Default: 'horizontal'.
DividerRenderer::supports()
public function supports(Milpa\Live\ValueObjects\Tui\TuiNode $node): boolTrue only for `divider` nodes — dispatch is by declared node type, never by where the node came from.
Parameters
| Name | Type | Description |
|---|---|---|
| $node | Milpa\Live\ValueObjects\Tui\TuiNode |
DividerRenderer::render()
public function render(Milpa\Live\ValueObjects\Tui\TuiNode $node, Milpa\Live\ValueObjects\Tui\TuiRenderContext $context): Milpa\Live\ValueObjects\Tui\TuiFrameDraws the rule across the full width, splitting it around the label when the node declares one.
Parameters
| Name | Type | Description |
|---|---|---|
| $node | Milpa\Live\ValueObjects\Tui\TuiNode | |
| $context | Milpa\Live\ValueObjects\Tui\TuiRenderContext |