Crates.io | rat-widget |
lib.rs | rat-widget |
version | 0.31.0 |
source | src |
created_at | 2024-05-20 22:04:53.111136 |
updated_at | 2024-12-12 16:48:08.206499 |
description | ratatui widgets extended edition |
homepage | |
repository | https://github.com/thscharler/rat-widget |
max_upload_size | |
id | 1246224 |
size | 901,327 |
This crate is a part of rat-salsa.
For examples see rat-widget GitHub
This crate tries to provide an extended set of widgets with
Uses the trait defined in rat-event to implement event-handling for crossterm. All widgets are designed with other event-handlers in mind.
Uses FocusFlag defined by rat-focus internally, to mark the focused widget. This is just a passive flag, that probably can be used with other focus systems. Or you use rat-focus.
Where it makes sense the widgets implement internal scrolling. They use Scroll from rat-scrolled.
Rendering all the widgets tries hard not to need allocations and extensive copying during rendering.
Special mentions:
All the widgets are plain ratatui widgets, and implement StatefulWidget and the (experimental) StatefulWidgetRef traits.
Event handling uses rat-event::HandleEvent. Currently, crossterm events are implemented.
and some adapters for ratatui widgets