Render a component

This commit is contained in:
Nathan Sobo 2023-08-15 19:46:07 -06:00
parent 65a5c54a2c
commit 77bc682a69
3 changed files with 38 additions and 10 deletions

View file

@ -64,3 +64,10 @@ impl<V: 'static> Element<V> for Frame<V> {
Ok(())
}
}
impl<V: 'static> Frame<V> {
pub fn child(mut self, child: impl Element<V>) -> Self {
self.children.push(child.into_any());
self
}
}