class RatatuiRuby::Widgets::Block

Defines the visual container for a widget.

Widgets often float in void. Without boundaries, interfaces become a chaotic mess of text. Users need structure to parse information.

This widget creates that structure. It wraps content in borders. It labels sections with titles. It paints the background.

Use blocks to define distinct areas. Group related information. Create a visual hierarchy that guides the user’s eye.

Example

Run the interactive demo from the terminal:

ruby examples/widget_box/app.rb