class RatatuiRuby::Tabs
A widget that displays a set of tabs, one of which is selected.
- titles
-
Array of strings or lines to display as tab titles.
- selected_index
-
The index of the currently selected tab.
- block
-
Optional block widget to wrap the tabs.
Public Class Methods
Source
# File lib/ratatui_ruby/schema/tabs.rb, line 18 def initialize(titles: [], selected_index: 0, block: nil) super end
- titles
-
Array of strings or lines to display as tab titles.
- selected_index
-
The index of the currently selected tab.
- block
-
Optional block widget to wrap the tabs.
Calls superclass method