class RatatuiRuby::Scrollbar

Visual scroll indicator.

A Scrollbar widget that can be oriented vertically or horizontally. It displays a track and a thumb to indicate the current scroll position relative to the total content length.

Fields

content_length

Total length of the content (Integer).

position

Current scroll position (Integer).

orientation

:vertical or :horizontal (Symbol, default: :vertical).

thumb_symbol

The character used for the scrollbar thumb (String, default: “█”).

block

An optional Block to wrap the scrollbar.