8000 GitHub - Pingid/rizzup: A composable terminal UI framework for building flexible text-based interfaces
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ rizzup Public

A composable terminal UI framework for building flexible text-based interfaces

Notifications You must be signed in to change notification settings

Pingid/rizzup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reactive TUI component library

This library heavily employs reactive signals akin to those found in libraries like leptos or dioxus. For rendering, it currently interfaces with ratatui widgets. Check out the examples, such as the text input, to understand its usage better.

fn input(_: ReadSignal<()>) -> Child {
    let (input_r, input_w) = create_signal("".to_string());

    on(move |key: &event::KeyCode| match key {
        event::KeyCode::Char(ch) => input_w.update(|x| x.push(*ch)),
        event::KeyCode::Backspace => input_w.update(|x| {
            x.pop();
        }),
        _ => {}
    });

    view_widget(move || {
        let block = Block::default()
            .padding(Padding::horizontal(1))
            .borders(Borders::all())
            .title("Start typeing")

        Paragraph::new(input_r.get()).block(block)
    })
}

About

A composable terminal UI framework for building flexible text-based interfaces

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0