+
+#[allow(dead_code)]
mod props {
use yew::{virtual_dom::Key, Classes};
}
pub trait CssPaddingBuilder {}
pub trait CssMarginBuilder {}
+ pub trait AsCssStylesMut {
+ fn as_css_styles_mut(&mut self) -> &mut CssStyles;
+ }
+
+ /// Holds the CSS styles to set on elements
+ #[derive(Clone, Default, Debug, PartialEq)]
+ pub struct CssStyles {}
+
+ pub trait WidgetStyleBuilder {}
+
pub trait WidgetBuilder: Sized {
fn as_std_props_mut(&mut self) -> &mut WidgetStdProps;
+ fn as_std_props(&self) -> &WidgetStdProps;
+
fn class(mut self, class: impl Into<Classes>) -> Self {
self.add_class(class);
self
pub struct WidgetStdProps {
pub key: Option<Key>,
pub class: Classes,
+ pub styles: CssStyles,
}
#[derive(PartialEq, Default, Clone)]
pub struct ListenersWrapper {}