1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::{AsHtmlTextValue, HtmlCommonSharedPropsBuilder};
crate::macros::def_intrinsic_component! {
"option"
OptionComponent(OptionComponentProps) {
OptionComponentProps
: OptionComponentPropsBuilder
: HtmlCommonSharedPropsBuilder[web_sys::HtmlOptionElement]
{
disabled: Option<bool>,
label: Option<&str>,
selected: Option<bool>,
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) },
}
}
}