pub use yew_macro::Properties;
pub trait Properties: Clone {
type Builder;
fn builder() -> Self::Builder;
}
#[derive(Debug)]
#[doc(hidden)]
pub struct EmptyBuilder;
impl Properties for () {
type Builder = EmptyBuilder;
fn builder() -> Self::Builder {
EmptyBuilder
}
}
impl EmptyBuilder {
pub fn build(self) {}
}