Expand description
Build a
<feDiffuseLighting>
element.
§Usage in rsx
rsx! {
// Elements are followed by braces that surround any attributes and children for that element
feDiffuseLighting {
// Add any attributes first
color: "red",
"custom-attribute-name": "value",
// Then add any attributes you are spreading into this element
..attributes,
// Then add any children elements, components, text nodes, or raw expressions
circle { cx: "10", cy: "10", r: "2", fill: "red" }
ChildComponent {}
"child text"
{raw_expression}
}
};Constants§
- dangerous_inner_html is Dioxus’s replacement for using innerHTML in the browser DOM. In general, setting HTML from code is risky because it’s easy to inadvertently expose your users to a cross-site scripting (XSS) attack. So, you can set HTML directly from Dioxus, but you have to type out dangerous_inner_html to remind yourself that it’s dangerous
- Prevent the default action for this element. This attribute is only recommended in the LiveView renderer which does not support the prevent default method on events.