diff --git a/yewprint/src/html_select.rs b/yewprint/src/html_select.rs index 2e9163f..6579ce1 100644 --- a/yewprint/src/html_select.rs +++ b/yewprint/src/html_select.rs @@ -27,6 +27,8 @@ pub struct HtmlSelectProps { pub options: Vec<(T, String)>, #[prop_or_default] pub value: Option, + #[prop_or_default] + pub class: Classes, } impl Component for HtmlSelect { @@ -94,6 +96,7 @@ impl Component for HtmlSelect { self.props.large.then(|| "bp3-large"), self.props.fill.then(|| "bp3-fill"), self.props.disabled.then(|| "bp3-disabled"), + self.props.class.clone(), ) >