diff --git a/packages/lib/src/icon_component.rs b/packages/lib/src/icon_component.rs index 5d5a9e7..f85e7c2 100644 --- a/packages/lib/src/icon_component.rs +++ b/packages/lib/src/icon_component.rs @@ -35,6 +35,8 @@ pub struct IconProps { pub class: String, /// An accessible, short-text description for the icon. pub title: Option, + /// The style of the `` element. + pub style: Option, } /// Icon component which generates SVG elements @@ -44,6 +46,7 @@ pub fn Icon(props: IconProps) -> rsx!( svg { class: "{props.class}", + style: props.style, height: "{props.height}", width: "{props.width}", view_box: "{props.icon.view_box()}",