Skip to main content

reratui_core/
props.rs

1use crate::Element;
2
3/// Trait for component props that support children
4pub trait ComponentProps {
5    /// Get the children VNodes (returns a clone for simplicity)
6    fn get_children(&self) -> Vec<Element>;
7
8    /// Set the children VNodes
9    fn set_children(&mut self, children: Vec<Element>);
10}