dioxus icon indicating copy to clipboard operation
dioxus copied to clipboard

Support web component properties

Open ealmloff opened this issue 2 years ago • 0 comments

Specific Demand

Currently it is impossible to set a property on a web component in dioxus. You are forced to use inner_html for that element and all children instead

Implement Suggestion

Dioxus should support web component properties by serializing any attribute that is not a string as JSON and sending it to the interpreter. Depending on how this effects bundle sizes, this may need to be moved into a feature flag

ealmloff avatar Dec 26 '23 23:12 ealmloff