class RatatuiRuby::Block
A widget that wraps other widgets with a border and/or a title.
- title
-
The title string to display on the border.
- borders
-
An array of symbols representing which borders to display:
- :top, :bottom, :left, :right, :all, :none
- border_color
-
The color of the border (e.g., βredβ, β#ff0000β).
Public Class Methods
Source
# File lib/ratatui_ruby/schema/block.rb, line 19 def initialize(title: nil, borders: [:all], border_color: nil) super end
- title
-
The title string to display on the border.
- borders
-
An array of symbols representing which borders to display.
- border_color
-
The color of the border.
Calls superclass method