Closed katopz closed 2 weeks ago
In your code, you use defs: {...}
and path: {...}
which is the syntax for attributes, not elements. This code compiles:
#![allow(non_snake_case)]
use dioxus::prelude::*;
fn main() {
launch(App);
}
fn App() -> Element {
rsx! {
svg {
view_box: "0 0 120 120",
defs {
marker {
path {
d: "M 0 0 L 10 5 L 0 10 z",
fill:"#f00"
}
}
},
}
}
}
Problem
Try to use
defs
insvg
Steps To Reproduce
Expected behavior
Able to use
defs
Screenshots
If applicable, add screenshots to help explain your problem.
Environment:
Seem like we not support
defs
yet am I right?