| Crates.io | rat-scrolled |
| lib.rs | rat-scrolled |
| version | 2.0.1 |
| created_at | 2024-05-18 15:32:05.407605+00 |
| updated_at | 2025-12-27 08:49:39.249283+00 |
| description | ratatui scroll widget and traits |
| homepage | |
| repository | https://github.com/thscharler/rat-salsa |
| max_upload_size | |
| id | 1244356 |
| size | 157,693 |
This crate is a part of rat-salsa.
For examples see rat-scrolled GitHub
Scroll adds support for widgets that want to scroll their content.
Scroll works analogous to Block, it can be set on the widget struct where it is supported. The widget can decide which scrolling it can do, horizontal vertical or both.
This is for widgets that handle their scrolling internally. They use ScrollState::offset to manage what they have to render. And they set ScrollState::page_len and ScrollState::max_offset to get a correct scrollbar displayed.
Widgets that don't want to do this can be rendered using View or Clipper.