1 parent 1a56744 commit 0f6582fCopy full SHA for 0f6582f
1 file changed
src/lib.rs
@@ -90,7 +90,8 @@ pub fn Icon(
90
pub fn Symbol(
91
/// Id of the symbol for later refernce.
92
/// Used as the `href` property in a `<use>` element.
93
- id: &'static str,
+ #[prop(into)]
94
+ id: String,
95
/// The icon to render.
96
#[prop(into)]
97
icon: Signal<icondata_core::Icon>,
@@ -105,7 +106,7 @@ pub fn Symbol(
105
106
(None, Some(b)) => Some(b.to_string()),
107
_ => None,
108
})
- .attr("id", id)
109
+ .attr("id", id.clone())
110
.attr("x", icon.x)
111
.attr("y", icon.y)
112
.attr("viewBox", icon.view_box)
0 commit comments