Built-In Control Reference
@sullux/tui includes a suite of core controls that satisfy the functional interface contract { onMeasure, onLayout, onRender }.
Layout Controls
- layout (Flow Layout) — Sequential linear stacking (
horizontalorvertical). - canvas (Absolute Layout) — Exact coordinate-based positioning (
x,y). - scroll (Scrolling Viewport) — Clipped scrolling viewport with auto-clamping,
contentSize, andmaxScroll. - stack (Auto-Filling Helper) — Auto-filling vertical/horizontal layout wrapper.
- wrap (Wrap Panel Layout) — Sequential flow layout that wraps overflowing children across rows or columns.
Visual & Content Primitives
- text (Formatted Text) — Word-wrapped formatted text strings with alignment and ANSI styles.
- rich (Inline Span & Flow Text) — Inline styled text spans and non-text elements flowing across wrapping lines.
- border (Decorative Box Outlines) — Rounded or square box outlines with automatic padding inset geometry.
- image (Kitty & Sixel Graphics) — Binary image rendering and SVG vector-to-raster compilation.