revue 2.71.1

A Vue-style TUI framework for Rust with CSS styling
Documentation
//! Example struct for individual widget demonstrations

use revue::prelude::*;

pub struct Example {
    pub title: &'static str,
    pub description: &'static str,
    pub widget: Box<dyn View>,
}

impl Example {
    pub fn new(
        title: &'static str,
        description: &'static str,
        widget: impl View + 'static,
    ) -> Self {
        Self {
            title,
            description,
            widget: Box::new(widget),
        }
    }
}