react-html 1.0.0-alpha.8

react html components for frender
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::{AsHtmlTextValue, HtmlCommonSharedPropsBuilder};

crate::macros::def_intrinsic_component! {
    "data"
    DataComponent(DataComponentProps) {
        DataComponentProps
        : DataComponentPropsBuilder
        : HtmlCommonSharedPropsBuilder[web_sys::HtmlDataElement]
        {
            default_value[TValue: AsHtmlTextValue]: Option<TValue> { into? |v| AsHtmlTextValue::as_html_text_value(&v) },
            value[TValue: AsHtmlTextValue]: Option<TValue> { into? |v| AsHtmlTextValue::as_html_text_value(&v) },
        }
    }
}