reratui-core 0.2.0

Core types, traits, and virtual DOM implementation for the Reratui reactive TUI framework
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::Element;

/// Trait for component props that support children
pub trait ComponentProps {
    /// Get the children VNodes (returns a clone for simplicity)
    fn get_children(&self) -> Vec<Element>;

    /// Set the children VNodes
    fn set_children(&mut self, children: Vec<Element>);
}