web-component 0.1.11

A tool to create web components using Dioxus
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::prelude::*;

pub type NoProperties = ();

pub trait FromProperties<P: Properties>: Sized {
    fn from_properties(properties: P) -> Self;
}

impl<T> FromProperties<NoProperties> for T
where
    T: Default + WebComponent<Properties = NoProperties>,
{
    fn from_properties(_: ()) -> Self {
        Default::default()
    }
}