1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
use crate::{AsHtmlTextValue, HtmlCommonSharedPropsBuilder};
crate::macros::def_intrinsic_component! {
"button"
ButtonComponent(ButtonComponentProps) {
ButtonComponentProps
: ButtonComponentPropsBuilder
: HtmlCommonSharedPropsBuilder[web_sys::HtmlButtonElement]
{
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) },
auto_focus: Option<bool>,
disabled: Option<bool>,
form: Option<&str>,
form_action: Option<&str>,
form_enc_type: Option<&str>,
form_method: Option<&str>,
form_no_validate: Option<bool>,
form_target: Option<&str>,
name: Option<&str>,
html_type@"type": Option<crate::ButtonType>,
}
}
}