Layout Split Example

Demonstrates dynamic geometry management with constraints and flex modes.

Terminal screens vary in size. Hardcoded layouts break. Layout.split manages space dynamically, ensuring your interface adapts to any window dimension.

Features Demonstrated

Hotkeys

Usage

ruby examples/widget_layout_split/app.rb

Learning Outcomes

Use this example if you need to… - Build responsive dashboards. - Create 3-column layouts where the middle content fills remaining space. - Center a modal dialog on the screen. - Distribute buttons evenly across a control bar.

Demo