DioxusLabs / DioxusLabs/dioxus

Support web component properties

Open
#1,751 0 comments 3 reactions 0 assignees View on GitHub
enhancement html
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

## Specific Demand

Currently it is impossible to set a [property](https://open-wc.org/guides/knowledge/attributes-and-properties/#properties) 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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.