Allow spread attributes to be set directly (#3881)

* allow spread attributes to be set directly

* Remove ordering requirement
This commit is contained in:
Evan Almloff authored and GitHub committed 2025-04-07 16:35:16 -07:00
1 parent 8c866b783d
commit 589440b9cb
3 files changed
+119 -42

No files matched your search

+8
View File
@@ -2,6 +2,14 @@ use super::*;
use crate::document;
use dioxus_html as dioxus_elements;
#[non_exhaustive]
#[derive(Clone, Props, PartialEq)]
pub struct OtherLinkProps {
pub rel: String,
#[props(extends = link, extends = GlobalAttributes)]
pub additional_attributes: Vec<Attribute>,
}
#[non_exhaustive]
#[derive(Clone, Props, PartialEq)]
pub struct LinkProps {