Files
rstemp/src/view/component.rs
2024-10-12 11:54:27 +08:00

14 lines
246 B
Rust

use std::io;
use crossterm::event::Event;
use ratatui::widgets::Widget;
pub mod block;
pub mod input;
pub mod table;
pub trait Component {
fn widget(&self) -> impl Widget;
fn event_handler(&mut self, event: Event) -> io::Result<()>;
}