class RatatuiRuby::Tabs

Displays a tab bar for navigation.

Screen real estate is limited. You cannot show everything at once. Segregating content into views is necessary for complex apps.

This widget separates dimensions. It displays a row of titles, indicating which view is active.

Use it at the top of your interface to switch between major modes or contexts.

Examples

Tabs.new(
  titles: ["Home", "Settings", "Logs"],
  selected_index: 0,
  highlight_style: Style.new(fg: :yellow),
  divider: "|"
)